@antelopejs/dms-saas 0.3.15 → 0.5.0

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 (819) hide show
  1. package/README.md +61 -14
  2. package/dist/auth/index.d.ts +1 -0
  3. package/dist/auth/index.js +1 -0
  4. package/dist/auth/index.js.map +1 -1
  5. package/dist/auth/owner-only-permissions-resolver.d.ts +1 -0
  6. package/dist/auth/owner-only-permissions-resolver.js +25 -0
  7. package/dist/auth/owner-only-permissions-resolver.js.map +1 -0
  8. package/dist/billing-state/directory-hooks.d.ts +1 -0
  9. package/dist/billing-state/directory-hooks.js +35 -0
  10. package/dist/billing-state/directory-hooks.js.map +1 -0
  11. package/dist/billing-state/directory.d.ts +29 -0
  12. package/dist/billing-state/directory.js +152 -0
  13. package/dist/billing-state/directory.js.map +1 -0
  14. package/dist/billing-state/index.d.ts +5 -1
  15. package/dist/billing-state/index.js +14 -2
  16. package/dist/billing-state/index.js.map +1 -1
  17. package/dist/billing-state/past-due-banner.d.ts +4 -3
  18. package/dist/billing-state/past-due-banner.js +30 -10
  19. package/dist/billing-state/past-due-banner.js.map +1 -1
  20. package/dist/billing-state/recovery.d.ts +4 -0
  21. package/dist/billing-state/recovery.js +7 -5
  22. package/dist/billing-state/recovery.js.map +1 -1
  23. package/dist/billing-state/trial-ending-banner.d.ts +4 -0
  24. package/dist/billing-state/trial-ending-banner.js +66 -0
  25. package/dist/billing-state/trial-ending-banner.js.map +1 -0
  26. package/dist/config/runtime.d.ts +1 -0
  27. package/dist/config/runtime.js +5 -0
  28. package/dist/config/runtime.js.map +1 -1
  29. package/dist/crons/auto-suspend-past-due.js +4 -5
  30. package/dist/crons/auto-suspend-past-due.js.map +1 -1
  31. package/dist/data-api/platformOwner/admin-user-invoices.d.ts +6 -4
  32. package/dist/data-api/platformOwner/admin-user-invoices.js +52 -30
  33. package/dist/data-api/platformOwner/admin-user-invoices.js.map +1 -1
  34. package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +2 -0
  35. package/dist/data-api/platformOwner/admin-user-workspaces.js +69 -3
  36. package/dist/data-api/platformOwner/admin-user-workspaces.js.map +1 -1
  37. package/dist/data-api/platformOwner/credit-note-rows.d.ts +11 -0
  38. package/dist/data-api/platformOwner/credit-note-rows.js +54 -0
  39. package/dist/data-api/platformOwner/credit-note-rows.js.map +1 -0
  40. package/dist/data-api/platformOwner/credit-notes.d.ts +13 -0
  41. package/dist/data-api/platformOwner/credit-notes.js +149 -10
  42. package/dist/data-api/platformOwner/credit-notes.js.map +1 -1
  43. package/dist/data-api/platformOwner/features.d.ts +8 -2
  44. package/dist/data-api/platformOwner/features.js +155 -35
  45. package/dist/data-api/platformOwner/features.js.map +1 -1
  46. package/dist/data-api/platformOwner/invitations.js +29 -9
  47. package/dist/data-api/platformOwner/invitations.js.map +1 -1
  48. package/dist/data-api/platformOwner/invoice-cells.d.ts +5 -0
  49. package/dist/data-api/platformOwner/invoice-cells.js +51 -0
  50. package/dist/data-api/platformOwner/invoice-cells.js.map +1 -0
  51. package/dist/data-api/platformOwner/invoice-options.js.map +1 -1
  52. package/dist/data-api/platformOwner/invoice-rows.d.ts +9 -0
  53. package/dist/data-api/platformOwner/invoice-rows.js +39 -0
  54. package/dist/data-api/platformOwner/invoice-rows.js.map +1 -0
  55. package/dist/data-api/platformOwner/invoices.d.ts +24 -6
  56. package/dist/data-api/platformOwner/invoices.js +192 -11
  57. package/dist/data-api/platformOwner/invoices.js.map +1 -1
  58. package/dist/data-api/platformOwner/members.d.ts +2 -1
  59. package/dist/data-api/platformOwner/members.js +56 -20
  60. package/dist/data-api/platformOwner/members.js.map +1 -1
  61. package/dist/data-api/platformOwner/plan-migrations.d.ts +14 -2
  62. package/dist/data-api/platformOwner/plan-migrations.js +179 -33
  63. package/dist/data-api/platformOwner/plan-migrations.js.map +1 -1
  64. package/dist/data-api/platformOwner/plans.d.ts +30 -6
  65. package/dist/data-api/platformOwner/plans.js +269 -44
  66. package/dist/data-api/platformOwner/plans.js.map +1 -1
  67. package/dist/data-api/platformOwner/segments.d.ts +9 -7
  68. package/dist/data-api/platformOwner/segments.js +108 -101
  69. package/dist/data-api/platformOwner/segments.js.map +1 -1
  70. package/dist/data-api/platformOwner/table-scope.d.ts +6 -0
  71. package/dist/data-api/platformOwner/table-scope.js +8 -0
  72. package/dist/data-api/platformOwner/table-scope.js.map +1 -0
  73. package/dist/data-api/platformOwner/users.d.ts +15 -2
  74. package/dist/data-api/platformOwner/users.js +171 -15
  75. package/dist/data-api/platformOwner/users.js.map +1 -1
  76. package/dist/data-api/platformOwner/workspace-cells.d.ts +12 -0
  77. package/dist/data-api/platformOwner/workspace-cells.js +90 -0
  78. package/dist/data-api/platformOwner/workspace-cells.js.map +1 -0
  79. package/dist/data-api/platformOwner/workspaces.d.ts +26 -4
  80. package/dist/data-api/platformOwner/workspaces.js +269 -97
  81. package/dist/data-api/platformOwner/workspaces.js.map +1 -1
  82. package/dist/data-api/tenant/tenant-invoices.d.ts +4 -0
  83. package/dist/data-api/tenant/tenant-invoices.js +68 -4
  84. package/dist/data-api/tenant/tenant-invoices.js.map +1 -1
  85. package/dist/hooks/register.js +5 -1
  86. package/dist/hooks/register.js.map +1 -1
  87. package/dist/i18n/composed-text.d.ts +17 -0
  88. package/dist/i18n/composed-text.js +71 -0
  89. package/dist/i18n/composed-text.js.map +1 -0
  90. package/dist/implementations/dms-saas/billing.d.ts +1 -0
  91. package/dist/implementations/dms-saas/billing.js +4 -1
  92. package/dist/implementations/dms-saas/billing.js.map +1 -1
  93. package/dist/implementations/dms-saas/pages.d.ts +0 -1
  94. package/dist/implementations/dms-saas/pages.js +0 -4
  95. package/dist/implementations/dms-saas/pages.js.map +1 -1
  96. package/dist/index.js +5 -1
  97. package/dist/index.js.map +1 -1
  98. package/dist/metrics/activity-sources.d.ts +2 -0
  99. package/dist/metrics/activity-sources.js +60 -0
  100. package/dist/metrics/activity-sources.js.map +1 -0
  101. package/dist/metrics/activity.d.ts +25 -0
  102. package/dist/metrics/activity.js +197 -0
  103. package/dist/metrics/activity.js.map +1 -0
  104. package/dist/metrics/directory-summary.d.ts +30 -0
  105. package/dist/metrics/directory-summary.js +95 -0
  106. package/dist/metrics/directory-summary.js.map +1 -0
  107. package/dist/metrics/headline-items.d.ts +32 -0
  108. package/dist/metrics/headline-items.js +242 -0
  109. package/dist/metrics/headline-items.js.map +1 -0
  110. package/dist/metrics/normalised-mrr.d.ts +32 -0
  111. package/dist/metrics/normalised-mrr.js +75 -0
  112. package/dist/metrics/normalised-mrr.js.map +1 -0
  113. package/dist/metrics/revenue.d.ts +30 -0
  114. package/dist/metrics/revenue.js +126 -0
  115. package/dist/metrics/revenue.js.map +1 -0
  116. package/dist/notifications/recipients.d.ts +1 -0
  117. package/dist/notifications/recipients.js +4 -0
  118. package/dist/notifications/recipients.js.map +1 -1
  119. package/dist/notifications/subjects.d.ts +18 -17
  120. package/dist/notifications/subjects.js +7 -1
  121. package/dist/notifications/subjects.js.map +1 -1
  122. package/dist/operator-actions/commands.js +9 -6
  123. package/dist/operator-actions/commands.js.map +1 -1
  124. package/dist/operator-actions/invitation-commands.d.ts +7 -1
  125. package/dist/operator-actions/invitation-commands.js +16 -0
  126. package/dist/operator-actions/invitation-commands.js.map +1 -1
  127. package/dist/operator-actions/previews.d.ts +50 -0
  128. package/dist/operator-actions/previews.js +113 -0
  129. package/dist/operator-actions/previews.js.map +1 -0
  130. package/dist/operator-actions/types.d.ts +1 -1
  131. package/dist/operator-actions/upgrade-preview.d.ts +35 -0
  132. package/dist/operator-actions/upgrade-preview.js +110 -0
  133. package/dist/operator-actions/upgrade-preview.js.map +1 -0
  134. package/dist/operator-billing/billing-rules.d.ts +58 -0
  135. package/dist/operator-billing/billing-rules.js +90 -0
  136. package/dist/operator-billing/billing-rules.js.map +1 -0
  137. package/dist/operator-billing/billing-settings-store.d.ts +3 -0
  138. package/dist/operator-billing/billing-settings-store.js +34 -0
  139. package/dist/operator-billing/billing-settings-store.js.map +1 -0
  140. package/dist/operator-billing/billing-stats.d.ts +37 -0
  141. package/dist/operator-billing/billing-stats.js +197 -0
  142. package/dist/operator-billing/billing-stats.js.map +1 -0
  143. package/dist/operator-billing/credit-allowance.d.ts +17 -0
  144. package/dist/operator-billing/credit-allowance.js +44 -0
  145. package/dist/operator-billing/credit-allowance.js.map +1 -0
  146. package/dist/operator-billing/credit-note-request.d.ts +39 -0
  147. package/dist/operator-billing/credit-note-request.js +73 -0
  148. package/dist/operator-billing/credit-note-request.js.map +1 -0
  149. package/dist/operator-billing/index.d.ts +8 -0
  150. package/dist/operator-billing/index.js +25 -0
  151. package/dist/operator-billing/index.js.map +1 -0
  152. package/dist/operator-billing/invoice-credit.d.ts +41 -0
  153. package/dist/operator-billing/invoice-credit.js +111 -0
  154. package/dist/operator-billing/invoice-credit.js.map +1 -0
  155. package/dist/operator-billing/legal-documents-store.d.ts +12 -0
  156. package/dist/operator-billing/legal-documents-store.js +46 -0
  157. package/dist/operator-billing/legal-documents-store.js.map +1 -0
  158. package/dist/operator-billing/legal-versions.d.ts +5 -0
  159. package/dist/operator-billing/legal-versions.js +31 -0
  160. package/dist/operator-billing/legal-versions.js.map +1 -0
  161. package/dist/pages/block-meta.d.ts +15 -0
  162. package/dist/pages/block-meta.js +21 -0
  163. package/dist/pages/block-meta.js.map +1 -0
  164. package/dist/pages/module.d.ts +1 -3
  165. package/dist/pages/module.js +1 -8
  166. package/dist/pages/module.js.map +1 -1
  167. package/dist/pages/platform/credit-notes.d.ts +1 -0
  168. package/dist/pages/platform/credit-notes.js +63 -5
  169. package/dist/pages/platform/credit-notes.js.map +1 -1
  170. package/dist/pages/platform/dashboard.d.ts +4 -1
  171. package/dist/pages/platform/dashboard.js +123 -64
  172. package/dist/pages/platform/dashboard.js.map +1 -1
  173. package/dist/pages/platform/features.js +83 -12
  174. package/dist/pages/platform/features.js.map +1 -1
  175. package/dist/pages/platform/index.d.ts +1 -0
  176. package/dist/pages/platform/index.js +1 -0
  177. package/dist/pages/platform/index.js.map +1 -1
  178. package/dist/pages/platform/invoices.d.ts +6 -0
  179. package/dist/pages/platform/invoices.js +84 -28
  180. package/dist/pages/platform/invoices.js.map +1 -1
  181. package/dist/pages/platform/paths.d.ts +9 -0
  182. package/dist/pages/platform/paths.js +25 -0
  183. package/dist/pages/platform/paths.js.map +1 -0
  184. package/dist/pages/platform/plans/edit.d.ts +2 -2
  185. package/dist/pages/platform/plans/edit.js +170 -105
  186. package/dist/pages/platform/plans/edit.js.map +1 -1
  187. package/dist/pages/platform/plans/index.d.ts +1 -0
  188. package/dist/pages/platform/plans/index.js +172 -54
  189. package/dist/pages/platform/plans/index.js.map +1 -1
  190. package/dist/pages/platform/plans/migrations.d.ts +12 -0
  191. package/dist/pages/platform/plans/migrations.js +259 -13
  192. package/dist/pages/platform/plans/migrations.js.map +1 -1
  193. package/dist/pages/platform/segments/edit.d.ts +17 -0
  194. package/dist/pages/platform/segments/edit.js +124 -0
  195. package/dist/pages/platform/segments/edit.js.map +1 -0
  196. package/dist/pages/platform/segments/index.js +68 -8
  197. package/dist/pages/platform/segments/index.js.map +1 -1
  198. package/dist/pages/platform/settings.d.ts +1 -1
  199. package/dist/pages/platform/settings.js +164 -105
  200. package/dist/pages/platform/settings.js.map +1 -1
  201. package/dist/pages/platform/users/detail.js +104 -33
  202. package/dist/pages/platform/users/detail.js.map +1 -1
  203. package/dist/pages/platform/users/index.js +52 -18
  204. package/dist/pages/platform/users/index.js.map +1 -1
  205. package/dist/pages/platform/workspaces/detail.d.ts +3 -1
  206. package/dist/pages/platform/workspaces/detail.js +184 -113
  207. package/dist/pages/platform/workspaces/detail.js.map +1 -1
  208. package/dist/pages/platform/workspaces/index.d.ts +1 -20
  209. package/dist/pages/platform/workspaces/index.js +152 -180
  210. package/dist/pages/platform/workspaces/index.js.map +1 -1
  211. package/dist/pages/platform/workspaces/shared.d.ts +11 -0
  212. package/dist/pages/platform/workspaces/shared.js +53 -0
  213. package/dist/pages/platform/workspaces/shared.js.map +1 -0
  214. package/dist/pages/public/auth/no-workspace.js +7 -2
  215. package/dist/pages/public/auth/no-workspace.js.map +1 -1
  216. package/dist/pages/public/index.js.map +1 -1
  217. package/dist/pages/public/legal/privacy-policy.d.ts +1 -0
  218. package/dist/pages/public/legal/privacy-policy.js +9 -4
  219. package/dist/pages/public/legal/privacy-policy.js.map +1 -1
  220. package/dist/pages/public/legal/terms-and-conditions.d.ts +1 -0
  221. package/dist/pages/public/legal/terms-and-conditions.js +9 -4
  222. package/dist/pages/public/legal/terms-and-conditions.js.map +1 -1
  223. package/dist/pages/public/legal/terms-of-use.d.ts +1 -0
  224. package/dist/pages/public/legal/terms-of-use.js +9 -4
  225. package/dist/pages/public/legal/terms-of-use.js.map +1 -1
  226. package/dist/pages/public/nav-bar.d.ts +2 -0
  227. package/dist/pages/public/nav-bar.js +14 -0
  228. package/dist/pages/public/nav-bar.js.map +1 -0
  229. package/dist/pages/public/pricing.d.ts +10 -0
  230. package/dist/pages/public/pricing.js +32 -0
  231. package/dist/pages/public/pricing.js.map +1 -0
  232. package/dist/pages/public/register.d.ts +1 -0
  233. package/dist/pages/public/register.js +6 -3
  234. package/dist/pages/public/register.js.map +1 -1
  235. package/dist/pages/public/screens.js +1 -0
  236. package/dist/pages/public/screens.js.map +1 -1
  237. package/dist/pages/tenant/billing.d.ts +7 -7
  238. package/dist/pages/tenant/billing.js +141 -63
  239. package/dist/pages/tenant/billing.js.map +1 -1
  240. package/dist/pages/tenant/data-export.d.ts +3 -1
  241. package/dist/pages/tenant/data-export.js +25 -6
  242. package/dist/pages/tenant/data-export.js.map +1 -1
  243. package/dist/pages/tenant/general.d.ts +3 -2
  244. package/dist/pages/tenant/general.js +91 -11
  245. package/dist/pages/tenant/general.js.map +1 -1
  246. package/dist/pages/tenant/index.d.ts +1 -0
  247. package/dist/pages/tenant/index.js +1 -0
  248. package/dist/pages/tenant/index.js.map +1 -1
  249. package/dist/pages/tenant/members-seat-quota.d.ts +3 -0
  250. package/dist/pages/tenant/members-seat-quota.js +18 -6
  251. package/dist/pages/tenant/members-seat-quota.js.map +1 -1
  252. package/dist/pages/tenant/owner-only.d.ts +1 -0
  253. package/dist/pages/tenant/owner-only.js +14 -0
  254. package/dist/pages/tenant/owner-only.js.map +1 -0
  255. package/dist/pages/tenant/workspace-suspended.js +7 -3
  256. package/dist/pages/tenant/workspace-suspended.js.map +1 -1
  257. package/dist/plan-changes/applied-upgrade.d.ts +5 -0
  258. package/dist/plan-changes/applied-upgrade.js +51 -0
  259. package/dist/plan-changes/applied-upgrade.js.map +1 -0
  260. package/dist/plan-changes/deferred.js +9 -40
  261. package/dist/plan-changes/deferred.js.map +1 -1
  262. package/dist/plan-changes/immediate.d.ts +4 -0
  263. package/dist/plan-changes/immediate.js +34 -0
  264. package/dist/plan-changes/immediate.js.map +1 -0
  265. package/dist/plan-changes/index.d.ts +1 -0
  266. package/dist/plan-changes/index.js +1 -0
  267. package/dist/plan-changes/index.js.map +1 -1
  268. package/dist/plan-changes/pending-target.d.ts +17 -0
  269. package/dist/plan-changes/pending-target.js +62 -0
  270. package/dist/plan-changes/pending-target.js.map +1 -0
  271. package/dist/plans/catalogue-summary.d.ts +24 -0
  272. package/dist/plans/catalogue-summary.js +97 -0
  273. package/dist/plans/catalogue-summary.js.map +1 -0
  274. package/dist/plans/catalogue-usage.d.ts +36 -0
  275. package/dist/plans/catalogue-usage.js +120 -0
  276. package/dist/plans/catalogue-usage.js.map +1 -0
  277. package/dist/plans/feature-guards.d.ts +5 -0
  278. package/dist/plans/feature-guards.js +31 -0
  279. package/dist/plans/feature-guards.js.map +1 -0
  280. package/dist/plans/feature-usage.d.ts +4 -0
  281. package/dist/plans/feature-usage.js +22 -0
  282. package/dist/plans/feature-usage.js.map +1 -0
  283. package/dist/plans/migration-blocks.d.ts +13 -0
  284. package/dist/plans/migration-blocks.js +337 -0
  285. package/dist/plans/migration-blocks.js.map +1 -0
  286. package/dist/plans/migration-detail.d.ts +48 -0
  287. package/dist/plans/migration-detail.js +80 -0
  288. package/dist/plans/migration-detail.js.map +1 -0
  289. package/dist/plans/migration-dialogs.d.ts +8 -0
  290. package/dist/plans/migration-dialogs.js +103 -0
  291. package/dist/plans/migration-dialogs.js.map +1 -0
  292. package/dist/plans/migration-outcomes.d.ts +7 -0
  293. package/dist/plans/migration-outcomes.js +38 -0
  294. package/dist/plans/migration-outcomes.js.map +1 -0
  295. package/dist/plans/migration-realtime.d.ts +2 -0
  296. package/dist/plans/migration-realtime.js +19 -0
  297. package/dist/plans/migration-realtime.js.map +1 -0
  298. package/dist/plans/migration-workspaces.d.ts +40 -0
  299. package/dist/plans/migration-workspaces.js +121 -0
  300. package/dist/plans/migration-workspaces.js.map +1 -0
  301. package/dist/plans/money.d.ts +1 -0
  302. package/dist/plans/money.js +11 -0
  303. package/dist/plans/money.js.map +1 -0
  304. package/dist/plans/plan-access-type.d.ts +25 -0
  305. package/dist/plans/plan-access-type.js +49 -0
  306. package/dist/plans/plan-access-type.js.map +1 -0
  307. package/dist/plans/plan-audience.d.ts +3 -0
  308. package/dist/plans/plan-audience.js +9 -0
  309. package/dist/plans/plan-audience.js.map +1 -0
  310. package/dist/plans/plan-diff.d.ts +13 -0
  311. package/dist/plans/plan-diff.js +73 -0
  312. package/dist/plans/plan-diff.js.map +1 -0
  313. package/dist/plans/plan-permission-tree.d.ts +11 -0
  314. package/dist/plans/plan-permission-tree.js +58 -0
  315. package/dist/plans/plan-permission-tree.js.map +1 -0
  316. package/dist/plans/plan-write.d.ts +17 -0
  317. package/dist/plans/plan-write.js +111 -0
  318. package/dist/plans/plan-write.js.map +1 -0
  319. package/dist/plans/seat-capacity.d.ts +3 -1
  320. package/dist/plans/seat-capacity.js +10 -2
  321. package/dist/plans/seat-capacity.js.map +1 -1
  322. package/dist/plans/seat-hooks.d.ts +1 -0
  323. package/dist/plans/seat-hooks.js +1 -0
  324. package/dist/plans/seat-hooks.js.map +1 -1
  325. package/dist/plans/stripe-sync.d.ts +3 -0
  326. package/dist/plans/stripe-sync.js +16 -0
  327. package/dist/plans/stripe-sync.js.map +1 -1
  328. package/dist/routes/platformOwner/billing-settings.d.ts +11 -35
  329. package/dist/routes/platformOwner/billing-settings.js +77 -47
  330. package/dist/routes/platformOwner/billing-settings.js.map +1 -1
  331. package/dist/routes/platformOwner/billing-stats.d.ts +15 -0
  332. package/dist/routes/platformOwner/billing-stats.js +106 -0
  333. package/dist/routes/platformOwner/billing-stats.js.map +1 -0
  334. package/dist/routes/platformOwner/block-payloads.d.ts +7 -0
  335. package/dist/routes/platformOwner/block-payloads.js +3 -0
  336. package/dist/routes/platformOwner/block-payloads.js.map +1 -0
  337. package/dist/routes/platformOwner/credit-notes-issue.d.ts +7 -8
  338. package/dist/routes/platformOwner/credit-notes-issue.js +28 -16
  339. package/dist/routes/platformOwner/credit-notes-issue.js.map +1 -1
  340. package/dist/routes/platformOwner/dashboard.d.ts +14 -57
  341. package/dist/routes/platformOwner/dashboard.js +126 -247
  342. package/dist/routes/platformOwner/dashboard.js.map +1 -1
  343. package/dist/routes/platformOwner/index.d.ts +7 -0
  344. package/dist/routes/platformOwner/index.js +7 -0
  345. package/dist/routes/platformOwner/index.js.map +1 -1
  346. package/dist/routes/platformOwner/plan-deletion.d.ts +77 -19
  347. package/dist/routes/platformOwner/plan-deletion.js +219 -67
  348. package/dist/routes/platformOwner/plan-deletion.js.map +1 -1
  349. package/dist/routes/platformOwner/plan-dialogs.d.ts +22 -0
  350. package/dist/routes/platformOwner/plan-dialogs.js +211 -0
  351. package/dist/routes/platformOwner/plan-dialogs.js.map +1 -0
  352. package/dist/routes/platformOwner/plan-migration-context.d.ts +9 -0
  353. package/dist/routes/platformOwner/plan-migration-context.js +147 -0
  354. package/dist/routes/platformOwner/plan-migration-context.js.map +1 -0
  355. package/dist/routes/platformOwner/plan-migration-export.d.ts +12 -0
  356. package/dist/routes/platformOwner/plan-migration-export.js +100 -0
  357. package/dist/routes/platformOwner/plan-migration-export.js.map +1 -0
  358. package/dist/routes/platformOwner/plan-migrations.d.ts +43 -0
  359. package/dist/routes/platformOwner/plan-migrations.js +260 -0
  360. package/dist/routes/platformOwner/plan-migrations.js.map +1 -0
  361. package/dist/routes/platformOwner/plans.d.ts +45 -42
  362. package/dist/routes/platformOwner/plans.js +162 -143
  363. package/dist/routes/platformOwner/plans.js.map +1 -1
  364. package/dist/routes/platformOwner/platform-owners.d.ts +8 -6
  365. package/dist/routes/platformOwner/platform-owners.js +40 -12
  366. package/dist/routes/platformOwner/platform-owners.js.map +1 -1
  367. package/dist/routes/platformOwner/segments-export.d.ts +15 -0
  368. package/dist/routes/platformOwner/segments-export.js +143 -0
  369. package/dist/routes/platformOwner/segments-export.js.map +1 -0
  370. package/dist/routes/platformOwner/segments.d.ts +17 -11
  371. package/dist/routes/platformOwner/segments.js +62 -113
  372. package/dist/routes/platformOwner/segments.js.map +1 -1
  373. package/dist/routes/platformOwner/stripe-dashboard.d.ts +6 -0
  374. package/dist/routes/platformOwner/stripe-dashboard.js +29 -0
  375. package/dist/routes/platformOwner/stripe-dashboard.js.map +1 -0
  376. package/dist/routes/platformOwner/users-detail.d.ts +12 -22
  377. package/dist/routes/platformOwner/users-detail.js +60 -53
  378. package/dist/routes/platformOwner/users-detail.js.map +1 -1
  379. package/dist/routes/platformOwner/workspace-detail.d.ts +36 -0
  380. package/dist/routes/platformOwner/workspace-detail.js +222 -0
  381. package/dist/routes/platformOwner/workspace-detail.js.map +1 -0
  382. package/dist/routes/platformOwner/workspace-invitations.d.ts +4 -0
  383. package/dist/routes/platformOwner/workspace-invitations.js +18 -0
  384. package/dist/routes/platformOwner/workspace-invitations.js.map +1 -1
  385. package/dist/routes/platformOwner/workspace-operator-actions.d.ts +14 -2
  386. package/dist/routes/platformOwner/workspace-operator-actions.js +42 -4
  387. package/dist/routes/platformOwner/workspace-operator-actions.js.map +1 -1
  388. package/dist/routes/platformOwner/workspaces-admin.d.ts +17 -12
  389. package/dist/routes/platformOwner/workspaces-admin.js +122 -28
  390. package/dist/routes/platformOwner/workspaces-admin.js.map +1 -1
  391. package/dist/routes/public/index.d.ts +1 -0
  392. package/dist/routes/public/index.js +1 -0
  393. package/dist/routes/public/index.js.map +1 -1
  394. package/dist/routes/public/legal-documents.d.ts +2 -8
  395. package/dist/routes/public/legal-documents.js +4 -39
  396. package/dist/routes/public/legal-documents.js.map +1 -1
  397. package/dist/routes/public/pricing.d.ts +12 -0
  398. package/dist/routes/public/pricing.js +50 -0
  399. package/dist/routes/public/pricing.js.map +1 -0
  400. package/dist/routes/public/public-plan-catalog.d.ts +37 -0
  401. package/dist/routes/public/public-plan-catalog.js +63 -0
  402. package/dist/routes/public/public-plan-catalog.js.map +1 -0
  403. package/dist/routes/public/register.d.ts +13 -0
  404. package/dist/routes/public/register.js +88 -4
  405. package/dist/routes/public/register.js.map +1 -1
  406. package/dist/routes/tenant/billing-pay-invoice.d.ts +13 -0
  407. package/dist/routes/tenant/billing-pay-invoice.js +82 -0
  408. package/dist/routes/tenant/billing-pay-invoice.js.map +1 -0
  409. package/dist/routes/tenant/billing-portal.d.ts +8 -3
  410. package/dist/routes/tenant/billing-portal.js +34 -16
  411. package/dist/routes/tenant/billing-portal.js.map +1 -1
  412. package/dist/routes/tenant/billing-self-refund.d.ts +26 -1
  413. package/dist/routes/tenant/billing-self-refund.js +95 -46
  414. package/dist/routes/tenant/billing-self-refund.js.map +1 -1
  415. package/dist/routes/tenant/complimentary-banner.d.ts +12 -0
  416. package/dist/routes/tenant/complimentary-banner.js +64 -0
  417. package/dist/routes/tenant/complimentary-banner.js.map +1 -0
  418. package/dist/routes/tenant/data-export.js +14 -0
  419. package/dist/routes/tenant/data-export.js.map +1 -1
  420. package/dist/routes/tenant/index.d.ts +7 -0
  421. package/dist/routes/tenant/index.js +7 -0
  422. package/dist/routes/tenant/index.js.map +1 -1
  423. package/dist/routes/tenant/tenant-billing.d.ts +1 -0
  424. package/dist/routes/tenant/tenant-billing.js +18 -13
  425. package/dist/routes/tenant/tenant-billing.js.map +1 -1
  426. package/dist/routes/tenant/tenant-plan-authentication.d.ts +13 -0
  427. package/dist/routes/tenant/tenant-plan-authentication.js +79 -0
  428. package/dist/routes/tenant/tenant-plan-authentication.js.map +1 -0
  429. package/dist/routes/tenant/tenant-plan-cancellation.d.ts +12 -0
  430. package/dist/routes/tenant/tenant-plan-cancellation.js +87 -0
  431. package/dist/routes/tenant/tenant-plan-cancellation.js.map +1 -0
  432. package/dist/routes/tenant/tenant-plan-checkout.d.ts +3 -0
  433. package/dist/routes/tenant/tenant-plan-checkout.js +21 -11
  434. package/dist/routes/tenant/tenant-plan-checkout.js.map +1 -1
  435. package/dist/routes/tenant/tenant-plan-ops.d.ts +32 -2
  436. package/dist/routes/tenant/tenant-plan-ops.js +112 -39
  437. package/dist/routes/tenant/tenant-plan-ops.js.map +1 -1
  438. package/dist/routes/tenant/tenant-plan-preview.d.ts +33 -0
  439. package/dist/routes/tenant/tenant-plan-preview.js +216 -0
  440. package/dist/routes/tenant/tenant-plan-preview.js.map +1 -0
  441. package/dist/routes/tenant/tenant-plan-resubscription.d.ts +2 -0
  442. package/dist/routes/tenant/tenant-plan-resubscription.js +61 -0
  443. package/dist/routes/tenant/tenant-plan-resubscription.js.map +1 -0
  444. package/dist/routes/tenant/tenant-plan.d.ts +9 -4
  445. package/dist/routes/tenant/tenant-plan.js +125 -15
  446. package/dist/routes/tenant/tenant-plan.js.map +1 -1
  447. package/dist/routes/tenant/tenant-seats.d.ts +6 -1
  448. package/dist/routes/tenant/tenant-seats.js +26 -5
  449. package/dist/routes/tenant/tenant-seats.js.map +1 -1
  450. package/dist/routes/tenant/tenant-upcoming-invoice.d.ts +26 -0
  451. package/dist/routes/tenant/tenant-upcoming-invoice.js +200 -0
  452. package/dist/routes/tenant/tenant-upcoming-invoice.js.map +1 -0
  453. package/dist/routes/tenant/workspace-access.d.ts +67 -0
  454. package/dist/routes/tenant/workspace-access.js +224 -0
  455. package/dist/routes/tenant/workspace-access.js.map +1 -0
  456. package/dist/routes/tenant/workspaces.d.ts +12 -43
  457. package/dist/routes/tenant/workspaces.js +82 -192
  458. package/dist/routes/tenant/workspaces.js.map +1 -1
  459. package/dist/segments/index.d.ts +29 -0
  460. package/dist/segments/index.js +116 -0
  461. package/dist/segments/index.js.map +1 -0
  462. package/dist/stripe/client.d.ts +1 -0
  463. package/dist/stripe/client.js +11 -0
  464. package/dist/stripe/client.js.map +1 -1
  465. package/dist/stripe/customer-locale.d.ts +3 -0
  466. package/dist/stripe/customer-locale.js +36 -0
  467. package/dist/stripe/customer-locale.js.map +1 -0
  468. package/dist/stripe/dashboard-links.d.ts +2 -0
  469. package/dist/stripe/dashboard-links.js +8 -0
  470. package/dist/stripe/dashboard-links.js.map +1 -0
  471. package/dist/stripe/index.d.ts +3 -0
  472. package/dist/stripe/index.js +3 -0
  473. package/dist/stripe/index.js.map +1 -1
  474. package/dist/stripe/pending-update.d.ts +5 -0
  475. package/dist/stripe/pending-update.js +56 -0
  476. package/dist/stripe/pending-update.js.map +1 -0
  477. package/dist/stripe/plan-schedule.js +4 -1
  478. package/dist/stripe/plan-schedule.js.map +1 -1
  479. package/dist/stripe/subscription-cancellation.d.ts +3 -0
  480. package/dist/stripe/subscription-cancellation.js +26 -0
  481. package/dist/stripe/subscription-cancellation.js.map +1 -0
  482. package/dist/stripe/sync-plan.js +5 -6
  483. package/dist/stripe/sync-plan.js.map +1 -1
  484. package/dist/stripe/upcoming-invoice.d.ts +9 -0
  485. package/dist/stripe/upcoming-invoice.js +19 -3
  486. package/dist/stripe/upcoming-invoice.js.map +1 -1
  487. package/dist/stripe/webhook-checkout.js +2 -0
  488. package/dist/stripe/webhook-checkout.js.map +1 -1
  489. package/dist/stripe/webhook-credit-notes.js +15 -0
  490. package/dist/stripe/webhook-credit-notes.js.map +1 -1
  491. package/dist/stripe/webhook-dispatch.js +2 -0
  492. package/dist/stripe/webhook-dispatch.js.map +1 -1
  493. package/dist/stripe/webhook-handlers.d.ts +1 -0
  494. package/dist/stripe/webhook-handlers.js +34 -9
  495. package/dist/stripe/webhook-handlers.js.map +1 -1
  496. package/dist/stripe/webhook-shared.d.ts +3 -1
  497. package/dist/stripe/webhook-shared.js +20 -1
  498. package/dist/stripe/webhook-shared.js.map +1 -1
  499. package/dist/stripe/workspace-checkout.d.ts +2 -0
  500. package/dist/stripe/workspace-checkout.js +4 -0
  501. package/dist/stripe/workspace-checkout.js.map +1 -1
  502. package/dist/types/config.d.ts +2 -0
  503. package/dist/types/config.js.map +1 -1
  504. package/dist/upcoming-invoice/mapping.js +1 -0
  505. package/dist/upcoming-invoice/mapping.js.map +1 -1
  506. package/dist/users/index.d.ts +4 -0
  507. package/dist/users/index.js +21 -0
  508. package/dist/users/index.js.map +1 -0
  509. package/dist/users/platform-role.d.ts +18 -0
  510. package/dist/users/platform-role.js +127 -0
  511. package/dist/users/platform-role.js.map +1 -0
  512. package/dist/users/user-detail.d.ts +43 -0
  513. package/dist/users/user-detail.js +100 -0
  514. package/dist/users/user-detail.js.map +1 -0
  515. package/dist/users/user-facts.d.ts +10 -0
  516. package/dist/users/user-facts.js +157 -0
  517. package/dist/users/user-facts.js.map +1 -0
  518. package/dist/users/user-segments.d.ts +10 -0
  519. package/dist/users/user-segments.js +32 -0
  520. package/dist/users/user-segments.js.map +1 -0
  521. package/dist/utils/billing-displays.d.ts +6 -0
  522. package/dist/utils/billing-displays.js +17 -0
  523. package/dist/utils/billing-displays.js.map +1 -0
  524. package/dist/utils/billing-document-status.d.ts +0 -4
  525. package/dist/utils/billing-document-status.js +1 -13
  526. package/dist/utils/billing-document-status.js.map +1 -1
  527. package/dist/utils/billing-document-type.d.ts +6 -0
  528. package/dist/utils/billing-document-type.js +13 -0
  529. package/dist/utils/billing-document-type.js.map +1 -1
  530. package/dist/utils/content-language.d.ts +2 -0
  531. package/dist/utils/content-language.js +12 -0
  532. package/dist/utils/content-language.js.map +1 -0
  533. package/dist/utils/csv-file.d.ts +2 -0
  534. package/dist/utils/csv-file.js +23 -0
  535. package/dist/utils/csv-file.js.map +1 -0
  536. package/dist/utils/form-insight-type.d.ts +8 -0
  537. package/dist/utils/form-insight-type.js +34 -0
  538. package/dist/utils/form-insight-type.js.map +1 -0
  539. package/dist/utils/index.d.ts +9 -0
  540. package/dist/utils/index.js +9 -0
  541. package/dist/utils/index.js.map +1 -1
  542. package/dist/utils/language.d.ts +1 -0
  543. package/dist/utils/language.js +7 -0
  544. package/dist/utils/language.js.map +1 -0
  545. package/dist/utils/money.d.ts +2 -0
  546. package/dist/utils/money.js +24 -0
  547. package/dist/utils/money.js.map +1 -0
  548. package/dist/utils/segment-evaluator.d.ts +4 -0
  549. package/dist/utils/segment-evaluator.js +15 -8
  550. package/dist/utils/segment-evaluator.js.map +1 -1
  551. package/dist/utils/segment-explain.d.ts +10 -0
  552. package/dist/utils/segment-explain.js +31 -0
  553. package/dist/utils/segment-explain.js.map +1 -0
  554. package/dist/utils/segment-fields.d.ts +13 -2
  555. package/dist/utils/segment-fields.js +137 -116
  556. package/dist/utils/segment-fields.js.map +1 -1
  557. package/dist/utils/segment-matching.d.ts +14 -3
  558. package/dist/utils/segment-matching.js +47 -13
  559. package/dist/utils/segment-matching.js.map +1 -1
  560. package/dist/utils/segment-preview.d.ts +31 -0
  561. package/dist/utils/segment-preview.js +83 -0
  562. package/dist/utils/segment-preview.js.map +1 -0
  563. package/dist/utils/segment-user-projection.d.ts +3 -0
  564. package/dist/utils/segment-user-projection.js +31 -0
  565. package/dist/utils/segment-user-projection.js.map +1 -0
  566. package/dist/utils/segment-validation.d.ts +14 -0
  567. package/dist/utils/segment-validation.js +98 -0
  568. package/dist/utils/segment-validation.js.map +1 -0
  569. package/dist/utils/status-vocabulary.d.ts +57 -0
  570. package/dist/utils/status-vocabulary.js +92 -0
  571. package/dist/utils/status-vocabulary.js.map +1 -0
  572. package/dist/workers/index.d.ts +1 -0
  573. package/dist/workers/index.js +1 -0
  574. package/dist/workers/index.js.map +1 -1
  575. package/dist/workers/plan-migration-resolution.d.ts +14 -0
  576. package/dist/workers/plan-migration-resolution.js +99 -0
  577. package/dist/workers/plan-migration-resolution.js.map +1 -0
  578. package/dist/workers/plan-migration.d.ts +6 -1
  579. package/dist/workers/plan-migration.js +152 -37
  580. package/dist/workers/plan-migration.js.map +1 -1
  581. package/dist/workspaces/billing-identity-lock.d.ts +1 -0
  582. package/dist/workspaces/billing-identity-lock.js +18 -0
  583. package/dist/workspaces/billing-identity-lock.js.map +1 -0
  584. package/dist/workspaces/complimentary-banner.d.ts +11 -0
  585. package/dist/workspaces/complimentary-banner.js +83 -0
  586. package/dist/workspaces/complimentary-banner.js.map +1 -0
  587. package/dist/workspaces/default-member-role.d.ts +2 -0
  588. package/dist/workspaces/default-member-role.js +43 -0
  589. package/dist/workspaces/default-member-role.js.map +1 -0
  590. package/dist/workspaces/deletion-request.d.ts +2 -0
  591. package/dist/workspaces/deletion-request.js +5 -0
  592. package/dist/workspaces/deletion-request.js.map +1 -0
  593. package/dist/workspaces/deletion.d.ts +1 -1
  594. package/dist/workspaces/deletion.js +19 -7
  595. package/dist/workspaces/deletion.js.map +1 -1
  596. package/dist/workspaces/detail-items.d.ts +15 -0
  597. package/dist/workspaces/detail-items.js +226 -0
  598. package/dist/workspaces/detail-items.js.map +1 -0
  599. package/dist/workspaces/first-payment.d.ts +5 -0
  600. package/dist/workspaces/first-payment.js +28 -0
  601. package/dist/workspaces/first-payment.js.map +1 -0
  602. package/dist/workspaces/free-workspaces-per-card.d.ts +6 -0
  603. package/dist/workspaces/free-workspaces-per-card.js +58 -0
  604. package/dist/workspaces/free-workspaces-per-card.js.map +1 -0
  605. package/dist/workspaces/index.d.ts +7 -0
  606. package/dist/workspaces/index.js +7 -0
  607. package/dist/workspaces/index.js.map +1 -1
  608. package/dist/workspaces/invitations.d.ts +2 -1
  609. package/dist/workspaces/invitations.js +16 -6
  610. package/dist/workspaces/invitations.js.map +1 -1
  611. package/dist/workspaces/my-workspaces.d.ts +13 -0
  612. package/dist/workspaces/my-workspaces.js +68 -0
  613. package/dist/workspaces/my-workspaces.js.map +1 -0
  614. package/dist/workspaces/operator-creation.d.ts +39 -0
  615. package/dist/workspaces/operator-creation.js +123 -0
  616. package/dist/workspaces/operator-creation.js.map +1 -0
  617. package/dist/workspaces/operator-view.d.ts +13 -0
  618. package/dist/workspaces/operator-view.js +37 -0
  619. package/dist/workspaces/operator-view.js.map +1 -0
  620. package/dist/workspaces/owner-contact.d.ts +7 -0
  621. package/dist/workspaces/owner-contact.js +24 -0
  622. package/dist/workspaces/owner-contact.js.map +1 -0
  623. package/dist/workspaces/owner-invitation-email.d.ts +12 -0
  624. package/dist/workspaces/owner-invitation-email.js +53 -0
  625. package/dist/workspaces/owner-invitation-email.js.map +1 -0
  626. package/dist/workspaces/provisioning.d.ts +2 -0
  627. package/dist/workspaces/provisioning.js +37 -15
  628. package/dist/workspaces/provisioning.js.map +1 -1
  629. package/dist/workspaces/self-serve-creation.d.ts +38 -0
  630. package/dist/workspaces/self-serve-creation.js +106 -0
  631. package/dist/workspaces/self-serve-creation.js.map +1 -0
  632. package/dist/workspaces/workspace-glance.d.ts +3 -0
  633. package/dist/workspaces/workspace-glance.js +93 -0
  634. package/dist/workspaces/workspace-glance.js.map +1 -0
  635. package/dist/workspaces/workspace-name.d.ts +2 -0
  636. package/dist/workspaces/workspace-name.js +14 -0
  637. package/dist/workspaces/workspace-name.js.map +1 -0
  638. package/dist/workspaces/workspace-overview.d.ts +41 -0
  639. package/dist/workspaces/workspace-overview.js +84 -0
  640. package/dist/workspaces/workspace-overview.js.map +1 -0
  641. package/dist/workspaces/workspace-owner.d.ts +7 -0
  642. package/dist/workspaces/workspace-owner.js +14 -0
  643. package/dist/workspaces/workspace-owner.js.map +1 -0
  644. package/frontend-vue/app/build/PayInvoiceDialog.vue +40 -0
  645. package/frontend-vue/app/build/PayInvoicePanel.vue +203 -0
  646. package/frontend-vue/app/build/PlanChangeReview.vue +415 -0
  647. package/frontend-vue/app/build/PlanFeatureValueInput.vue +143 -0
  648. package/frontend-vue/app/build/PlanPermissionPicker.vue +246 -0
  649. package/frontend-vue/app/build/WorkspaceSwitcherRow.vue +116 -0
  650. package/frontend-vue/app/build/components/CreditNoteInvoiceSummary.vue +82 -0
  651. package/frontend-vue/app/build/components/FormFieldRow.vue +97 -0
  652. package/frontend-vue/app/build/components/FormRows.vue +26 -0
  653. package/frontend-vue/app/build/components/RequiredLegend.vue +7 -0
  654. package/frontend-vue/app/build/composables/useCreditNoteDraft.ts +142 -0
  655. package/frontend-vue/app/build/composables/useCreditNoteTexts.ts +123 -0
  656. package/frontend-vue/app/build/composables/useLiveFormValues.ts +49 -0
  657. package/frontend-vue/app/build/day-formats.ts +17 -0
  658. package/frontend-vue/app/build/highlight.ts +28 -0
  659. package/frontend-vue/app/build/plan-catalog.ts +161 -0
  660. package/frontend-vue/app/build/plan-change-heading.ts +81 -0
  661. package/frontend-vue/app/build/plan-permissions.ts +92 -0
  662. package/frontend-vue/app/build/plan-retire.ts +83 -0
  663. package/frontend-vue/app/build/public/AccessTimeline.vue +68 -0
  664. package/frontend-vue/app/build/public/LegalAcceptance.vue +51 -0
  665. package/frontend-vue/app/build/public/OtherWorkspaces.vue +88 -0
  666. package/frontend-vue/app/build/public/PricingComparison.vue +227 -0
  667. package/frontend-vue/app/build/public/PricingFaq.vue +76 -0
  668. package/frontend-vue/app/build/public/PublicStage.vue +72 -0
  669. package/frontend-vue/app/build/public/RegistrationCardField.vue +71 -0
  670. package/frontend-vue/app/build/public/RegistrationPlanCard.vue +122 -0
  671. package/frontend-vue/app/build/public/access.ts +118 -0
  672. package/frontend-vue/app/build/public/chosen-plan.ts +36 -0
  673. package/frontend-vue/app/build/public/legal.ts +99 -0
  674. package/frontend-vue/app/build/public/pricing.ts +175 -0
  675. package/frontend-vue/app/build/public/routes.ts +122 -0
  676. package/frontend-vue/app/build/public/usePublicFetch.ts +44 -0
  677. package/frontend-vue/app/build/public/usePublicPlanFormat.ts +52 -0
  678. package/frontend-vue/app/build/segments/tree.ts +137 -0
  679. package/frontend-vue/app/build/segments/types.ts +119 -0
  680. package/frontend-vue/app/build/segments/useSegmentCatalog.ts +58 -0
  681. package/frontend-vue/app/build/segments/useSegmentDraft.ts +33 -0
  682. package/frontend-vue/app/build/segments/useSegmentPreview.ts +78 -0
  683. package/frontend-vue/app/build/segments/useSegmentSentence.ts +60 -0
  684. package/frontend-vue/app/build/segments/useSegmentWords.ts +204 -0
  685. package/frontend-vue/app/build/useWorkspaceName.ts +14 -0
  686. package/frontend-vue/app/build/users/useUserDetail.ts +82 -0
  687. package/frontend-vue/app/build/workspace-detail/ComplimentaryDialog.vue +219 -0
  688. package/frontend-vue/app/build/workspace-detail/CreditDialog.vue +243 -0
  689. package/frontend-vue/app/build/workspace-detail/UpgradeDialog.vue +258 -0
  690. package/frontend-vue/app/build/workspace-detail/WorkspaceActionDialogs.vue +82 -0
  691. package/frontend-vue/app/build/workspace-detail/planPrice.ts +26 -0
  692. package/frontend-vue/app/build/workspace-detail/types.ts +138 -0
  693. package/frontend-vue/app/build/workspace-detail/useWorkspaceActions.ts +177 -0
  694. package/frontend-vue/app/build/workspace-detail/useWorkspaceOverview.ts +44 -0
  695. package/frontend-vue/app/build/workspace-paths.ts +8 -0
  696. package/frontend-vue/app/components/BillingIdentityFields.vue +294 -161
  697. package/frontend-vue/app/components/CustomerPortalButton.vue +80 -32
  698. package/frontend-vue/app/components/DataExport.vue +250 -260
  699. package/frontend-vue/app/components/DataExportHistory.vue +246 -0
  700. package/frontend-vue/app/components/DunningTimeline.vue +120 -0
  701. package/frontend-vue/app/components/IssueCreditNoteModal.vue +318 -116
  702. package/frontend-vue/app/components/LegalDocumentRelease.vue +64 -0
  703. package/frontend-vue/app/components/LegalLayout.vue +284 -46
  704. package/frontend-vue/app/components/MigrationStripeCheck.vue +133 -0
  705. package/frontend-vue/app/components/PastDueAlert.vue +186 -78
  706. package/frontend-vue/app/components/PastDueBanner.vue +96 -67
  707. package/frontend-vue/app/components/PayInvoiceModal.vue +57 -0
  708. package/frontend-vue/app/components/PaymentMethodCard.vue +159 -163
  709. package/frontend-vue/app/components/PendingCheckoutModal.vue +61 -61
  710. package/frontend-vue/app/components/PlanAccessEditor.vue +410 -0
  711. package/frontend-vue/app/components/PlanCard.vue +358 -261
  712. package/frontend-vue/app/components/PlanCardPublic.vue +123 -51
  713. package/frontend-vue/app/components/PlanComparisonModal.vue +373 -310
  714. package/frontend-vue/app/components/PlanEditorPreview.vue +374 -0
  715. package/frontend-vue/app/components/PlanLimitInput.vue +92 -0
  716. package/frontend-vue/app/components/PlanTaxSync.vue +118 -0
  717. package/frontend-vue/app/components/PlanUpgradeModal.vue +265 -156
  718. package/frontend-vue/app/components/PlatformNotes.vue +215 -255
  719. package/frontend-vue/app/components/Pricing.vue +236 -0
  720. package/frontend-vue/app/components/PublicNavBar.vue +70 -0
  721. package/frontend-vue/app/components/RefundButton.vue +264 -113
  722. package/frontend-vue/app/components/RefundExample.vue +86 -0
  723. package/frontend-vue/app/components/Register.vue +217 -121
  724. package/frontend-vue/app/components/RegistrationClosed.vue +30 -13
  725. package/frontend-vue/app/components/RetirePlanModal.vue +829 -0
  726. package/frontend-vue/app/components/SeatQuotaBanner.vue +240 -90
  727. package/frontend-vue/app/components/SegmentConditionRow.vue +171 -0
  728. package/frontend-vue/app/components/SegmentConditionsBuilder.vue +89 -162
  729. package/frontend-vue/app/components/SegmentConditionsGroup.vue +273 -463
  730. package/frontend-vue/app/components/SegmentLivePreview.vue +301 -0
  731. package/frontend-vue/app/components/SegmentLogicToggle.vue +24 -0
  732. package/frontend-vue/app/components/SegmentRulesText.vue +57 -0
  733. package/frontend-vue/app/components/SegmentValueInput.vue +165 -0
  734. package/frontend-vue/app/components/SegmentWords.vue +36 -0
  735. package/frontend-vue/app/components/TenantBillingForm.vue +142 -103
  736. package/frontend-vue/app/components/TenantPlanCard.vue +635 -281
  737. package/frontend-vue/app/components/TrialEndingBanner.vue +76 -0
  738. package/frontend-vue/app/components/UserPlatformRoleCard.vue +102 -0
  739. package/frontend-vue/app/components/UserSegmentMatches.vue +123 -0
  740. package/frontend-vue/app/components/UserSummaryCard.vue +107 -158
  741. package/frontend-vue/app/components/WorkspaceAdminCreateModal.vue +354 -177
  742. package/frontend-vue/app/components/WorkspaceCreateModal.vue +372 -252
  743. package/frontend-vue/app/components/WorkspaceDangerZone.vue +178 -126
  744. package/frontend-vue/app/components/WorkspaceDetailHeader.vue +262 -19
  745. package/frontend-vue/app/components/WorkspaceInvitationLink.vue +108 -86
  746. package/frontend-vue/app/components/WorkspaceOperatorActions.vue +105 -330
  747. package/frontend-vue/app/components/WorkspaceSuspendButton.vue +34 -158
  748. package/frontend-vue/app/components/WorkspaceSuspended.vue +390 -149
  749. package/frontend-vue/app/components/WorkspaceSwitcherWidget.vue +145 -161
  750. package/frontend-vue/app/composables/useBillingIdentity.ts +97 -95
  751. package/frontend-vue/app/composables/useBillingStatus.ts +56 -24
  752. package/frontend-vue/app/composables/useCurrentWorkspace.ts +15 -30
  753. package/frontend-vue/app/composables/useDaysLeft.ts +20 -0
  754. package/frontend-vue/app/composables/useExportHistory.ts +209 -120
  755. package/frontend-vue/app/composables/useInvitationLink.ts +39 -53
  756. package/frontend-vue/app/composables/useMoneyFormat.ts +64 -33
  757. package/frontend-vue/app/composables/useMyWorkspaces.ts +41 -32
  758. package/frontend-vue/app/composables/useNextInvoice.ts +20 -0
  759. package/frontend-vue/app/composables/usePayInvoice.ts +52 -0
  760. package/frontend-vue/app/composables/usePendingCheckout.ts +71 -67
  761. package/frontend-vue/app/composables/usePlanCatalog.ts +16 -0
  762. package/frontend-vue/app/composables/usePlanChangeReview.ts +115 -0
  763. package/frontend-vue/app/composables/usePlanComparison.ts +17 -8
  764. package/frontend-vue/app/composables/usePlanDowngrade.ts +25 -23
  765. package/frontend-vue/app/composables/usePlanFeatureFormat.ts +238 -202
  766. package/frontend-vue/app/composables/usePlanPriceLabel.ts +28 -0
  767. package/frontend-vue/app/composables/useSaasRegistration.ts +516 -301
  768. package/frontend-vue/app/composables/useSaasStatus.ts +81 -0
  769. package/frontend-vue/app/composables/useSeatQuota.ts +27 -17
  770. package/frontend-vue/app/composables/useServerConfirm.ts +44 -0
  771. package/frontend-vue/app/composables/useStripePaymentElement.ts +3 -5
  772. package/frontend-vue/app/composables/useTenantPlan.ts +235 -99
  773. package/frontend-vue/app/composables/useUpgradeAuthentication.ts +37 -0
  774. package/frontend-vue/app/composables/useWorkspaceFinalization.ts +4 -0
  775. package/frontend-vue/app/composables/useWorkspaceOverview.ts +58 -0
  776. package/frontend-vue/app/composables/useWorkspaceRenamed.ts +33 -0
  777. package/frontend-vue/app/custom-pages/auth/no-workspace.vue +391 -312
  778. package/frontend-vue/app/plugins/auth-links.ts +38 -17
  779. package/frontend-vue/app/plugins/billing-data-types.ts +111 -58
  780. package/frontend-vue/app/plugins/footer-links.ts +13 -33
  781. package/frontend-vue/app/plugins/segment-conditions-data-type.ts +45 -0
  782. package/frontend-vue/app/plugins/sidebar-widgets.ts +13 -10
  783. package/frontend-vue/app/types/runtime-config.ts +9 -4
  784. package/frontend-vue/dms.frontend.build.ts +7 -0
  785. package/frontend-vue/dms.frontend.ts +6 -13
  786. package/frontend-vue/i18n/locales/saas-en-GB.json +499 -1380
  787. package/frontend-vue/i18n/locales/saas-fr-FR.json +499 -1380
  788. package/frontend-vue/i18n/locales/saas-operator-billing-en-GB.json +282 -0
  789. package/frontend-vue/i18n/locales/saas-operator-billing-fr-FR.json +282 -0
  790. package/frontend-vue/i18n/locales/saas-operator-catalog-en-GB.json +597 -0
  791. package/frontend-vue/i18n/locales/saas-operator-catalog-fr-FR.json +597 -0
  792. package/frontend-vue/i18n/locales/saas-operator-users-en-GB.json +505 -0
  793. package/frontend-vue/i18n/locales/saas-operator-users-fr-FR.json +505 -0
  794. package/frontend-vue/i18n/locales/saas-operator-workspaces-en-GB.json +595 -0
  795. package/frontend-vue/i18n/locales/saas-operator-workspaces-fr-FR.json +595 -0
  796. package/frontend-vue/i18n/locales/saas-public-en-GB.json +304 -0
  797. package/frontend-vue/i18n/locales/saas-public-fr-FR.json +304 -0
  798. package/frontend-vue/i18n/locales/saas-tenant-billing-en-GB.json +434 -0
  799. package/frontend-vue/i18n/locales/saas-tenant-billing-fr-FR.json +434 -0
  800. package/frontend-vue/i18n/locales/saas-tenant-workspace-en-GB.json +252 -0
  801. package/frontend-vue/i18n/locales/saas-tenant-workspace-fr-FR.json +252 -0
  802. package/frontend-vue/package.json +1 -1
  803. package/package.json +10 -10
  804. package/frontend-vue/app/components/CardGrid.vue +0 -77
  805. package/frontend-vue/app/components/DeletePlanModal.vue +0 -223
  806. package/frontend-vue/app/components/FreeAccessBanner.vue +0 -70
  807. package/frontend-vue/app/components/PlanCardsDisplay.vue +0 -127
  808. package/frontend-vue/app/components/PlanInheritancePicker.vue +0 -329
  809. package/frontend-vue/app/components/RecentActivity.vue +0 -72
  810. package/frontend-vue/app/components/WorkspaceBillingInfo.vue +0 -68
  811. package/frontend-vue/app/components/WorkspaceCompAccessButton.vue +0 -198
  812. package/frontend-vue/app/components/WorkspaceIdentity.vue +0 -99
  813. package/frontend-vue/app/components/WorkspaceJoinButton.vue +0 -50
  814. package/frontend-vue/app/components/WorkspaceSummaryCard.vue +0 -185
  815. package/frontend-vue/app/composables/useDetailRefresh.ts +0 -17
  816. package/frontend-vue/app/composables/usePastDueBannerAction.ts +0 -20
  817. package/frontend-vue/app/composables/usePlanFeatureLabel.ts +0 -24
  818. package/frontend-vue/app/plugins/plan-cards-display.client.ts +0 -16
  819. package/frontend-vue/app/plugins/segment-conditions-data-type.client.ts +0 -122
@@ -16,309 +16,188 @@ exports.SaasDashboardController = void 0;
16
16
  const interface_api_1 = require("@antelopejs/interface-api");
17
17
  const interface_database_1 = require("@antelopejs/interface-database");
18
18
  const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
19
- const db_1 = require("@antelopejs/interface-dms/db");
20
19
  const auth_1 = require("@antelopejs/interface-dms/auth");
21
- const db_2 = require("../../db");
20
+ const config_1 = require("../../config");
21
+ const db_1 = require("../../db");
22
+ const activity_1 = require("../../metrics/activity");
23
+ const directory_summary_1 = require("../../metrics/directory-summary");
24
+ const headline_items_1 = require("../../metrics/headline-items");
25
+ const normalised_mrr_1 = require("../../metrics/normalised-mrr");
26
+ const revenue_1 = require("../../metrics/revenue");
27
+ const paths_1 = require("../../pages/platform/paths");
28
+ const migration_detail_1 = require("../../plans/migration-detail");
22
29
  const time_1 = require("../../utils/time");
23
- const ACTIVE_STATUS = "active";
24
- const TRIALING_STATUS = "trialing";
25
- const FREE_STATUS = "free";
26
- const PAST_DUE_STATUS = "past_due";
30
+ const activity_sources_1 = require("../../metrics/activity-sources");
27
31
  const OPEN_STATUS = "open";
28
- const PAID_STATUS = "paid";
29
- const COUNTED_AS_ACTIVE = [ACTIVE_STATUS, TRIALING_STATUS];
30
- const SUBSCRIPTIONS_SERIES_NAME = "subscriptions";
31
- const REVENUE_SERIES_NAME = "revenue";
32
- const PRICE_DIVIDER = 100;
33
- const REVENUE_BUCKETS = 12;
34
- const DAYS_PER_MONTH = 30;
35
- const TOP_PLANS_LIMIT = 10;
36
- const RECENT_ACTIVITY_LIMIT = 12;
37
- const CURRENCY_SYMBOL = "€";
38
- const STATUS_LABELS = {
39
- active: "Active",
40
- trialing: "Trialing",
41
- past_due: "Past due",
42
- suspended: "Suspended",
43
- cancelled: "Cancelled",
44
- pending_payment: "Pending payment",
45
- };
46
- const UNKNOWN_STATUS_LABEL = "Unknown";
47
- function sumValues(points) {
48
- return points.reduce((total, point) => total + point.y, 0);
32
+ const LATE_PAYMENT_LOOKBACK_DAYS = 90;
33
+ const ACTIVITY_LIMIT = 8;
34
+ const PERCENT = 100;
35
+ async function loadAttentionMigrations() {
36
+ const migrations = await (0, interface_database_decorators_1.GetModel)(db_1.PlanMigrationModel).findByStage("needs_attention");
37
+ const [first] = migrations;
38
+ const totals = first ? (0, migration_detail_1.migrationTotals)(first) : null;
39
+ return {
40
+ count: migrations.length,
41
+ firstFromPlan: first?.fromPlanName ?? "—",
42
+ firstToPlan: first?.toPlanName ?? "—",
43
+ firstFailed: totals?.notMoved ?? 0,
44
+ firstTotal: totals?.captured ?? 0,
45
+ };
49
46
  }
50
- function formatStatusLabel(status) {
51
- return STATUS_LABELS[status] ?? UNKNOWN_STATUS_LABEL;
47
+ async function loadOpenInvoices(currency) {
48
+ const open = await (0, interface_database_decorators_1.GetModel)(db_1.InvoiceModel, interface_database_1.CROSS_INSTANCE)
49
+ .table.getAll(OPEN_STATUS, "status")
50
+ .run();
51
+ return {
52
+ count: open.length,
53
+ awaiting: (0, normalised_mrr_1.sumInReportingCurrency)(open.map((invoice) => ({
54
+ amountMinor: invoice.total,
55
+ currency: invoice.currency,
56
+ })), currency),
57
+ };
52
58
  }
53
- function toTimestamp(value) {
54
- if (value instanceof Date)
55
- return value.toISOString();
56
- if (typeof value === "string")
57
- return value;
58
- return "";
59
+ async function loadSettledDocuments(since) {
60
+ const cutoff = new Date(since.getTime() - LATE_PAYMENT_LOOKBACK_DAYS * time_1.MS_PER_DAY);
61
+ return (0, interface_database_decorators_1.GetModel)(db_1.InvoiceModel, interface_database_1.CROSS_INSTANCE)
62
+ .table.getAll(["paid", "issued"], "status")
63
+ .filter((row) => row.key("issuedAt").ge(cutoff))
64
+ .run();
59
65
  }
60
- function formatInvoiceAmount(amount) {
61
- return `${CURRENCY_SYMBOL}${((amount ?? 0) / PRICE_DIVIDER).toFixed(2)}`;
66
+ function earliestStart(...ranges) {
67
+ return ranges
68
+ .filter((range) => range !== null)
69
+ .reduce((first, range) => (range.from < first ? range.from : first), new Date());
62
70
  }
63
71
  class SaasDashboardController extends (0, interface_api_1.Controller)("/api/saas/dashboard") {
64
- async kpiWorkspaces(_user) {
65
- const value = await this.tenantModel.table.count().run();
66
- return { value };
67
- }
68
- async kpiMrr(_user) {
69
- const rows = await this.tenantSubscriptionModel.table
70
- .getAll([ACTIVE_STATUS, TRIALING_STATUS], "status")
71
- .pluck("planId")
72
- .run();
73
- const planPriceCache = new Map();
74
- let total = 0;
75
- for (const row of rows) {
76
- const planId = row.planId;
77
- if (!planId)
78
- continue;
79
- let price = planPriceCache.get(planId);
80
- if (price === undefined) {
81
- const plan = await this.planModel.get(planId);
82
- price = plan?.price ?? null;
83
- planPriceCache.set(planId, price);
84
- }
85
- if (price !== null)
86
- total += price;
87
- }
88
- return { value: Math.round(total * PRICE_DIVIDER) / PRICE_DIVIDER };
89
- }
90
- async countSubscriptionsByStatus() {
91
- const rows = await this.tenantSubscriptionModel.table.pluck("status").run();
92
- const counts = new Map();
93
- for (const { status } of rows) {
94
- if (!status)
95
- continue;
96
- counts.set(status, (counts.get(status) ?? 0) + 1);
97
- }
98
- return counts;
99
- }
100
- async kpiActive(_user) {
101
- const counts = await this.countSubscriptionsByStatus();
102
- const value = COUNTED_AS_ACTIVE.reduce((total, status) => total + (counts.get(status) ?? 0), 0);
103
- return { value };
104
- }
105
- async kpiOpen(_user) {
106
- const value = await this.invoiceModel.table
107
- .getAll(OPEN_STATUS, "status")
108
- .count()
109
- .run();
110
- return { value };
111
- }
112
- async kpiStateActive(_user) {
72
+ async summary() {
113
73
  return {
114
- value: await this.tenantBillingStateModel.countByState(ACTIVE_STATUS),
74
+ rows: await (0, directory_summary_1.loadDirectoryRows)(),
75
+ currency: (0, config_1.getReportingCurrency)(),
115
76
  };
116
77
  }
117
- async kpiStateFree(_user) {
78
+ async headline(_user) {
79
+ const { rows, currency } = await this.summary();
80
+ const summary = (0, directory_summary_1.summariseDirectory)(rows, new Date(), currency);
81
+ return { items: (0, headline_items_1.dashboardHeadline)(summary) };
82
+ }
83
+ async attention(_user) {
84
+ const { rows, currency } = await this.summary();
85
+ const summary = (0, directory_summary_1.summariseDirectory)(rows, new Date(), currency);
86
+ const [complimentaryEnding, migrations, openInvoices] = await Promise.all([
87
+ (0, directory_summary_1.nameWorkspaces)(summary.complimentaryEnding),
88
+ loadAttentionMigrations(),
89
+ loadOpenInvoices(currency),
90
+ ]);
118
91
  return {
119
- value: await this.tenantBillingStateModel.countByState(FREE_STATUS),
92
+ items: (0, headline_items_1.attentionCards)({
93
+ summary,
94
+ complimentaryEnding,
95
+ migrations,
96
+ openInvoices,
97
+ }),
120
98
  };
121
99
  }
122
- async kpiStatePastDue(_user) {
100
+ async churn(_user, from, to, compareFrom, compareTo) {
101
+ const { rows, currency } = await this.summary();
102
+ const mrr = (0, directory_summary_1.summariseDirectory)(rows, new Date(), currency).mrr;
103
+ const current = (0, revenue_1.churnOver)(rows, (0, revenue_1.parsePeriod)(from, to), mrr);
104
+ const comparison = (0, revenue_1.parseComparison)(compareFrom, compareTo);
105
+ if (!comparison)
106
+ return { value: current.rate };
107
+ const previous = (0, revenue_1.churnOver)(rows, comparison, mrr);
123
108
  return {
124
- value: await this.tenantBillingStateModel.countByState(PAST_DUE_STATUS),
109
+ value: current.rate,
110
+ previousValue: previous.rate,
111
+ delta: previous.rate === 0
112
+ ? undefined
113
+ : ((current.rate - previous.rate) / previous.rate) * PERCENT,
125
114
  };
126
115
  }
127
- async topPlans(_user) {
128
- const rows = await this.tenantSubscriptionModel.table
129
- .getAll([ACTIVE_STATUS, TRIALING_STATUS], "status")
130
- .pluck("planId")
131
- .run();
132
- const counts = new Map();
133
- for (const row of rows) {
134
- const planId = row.planId;
135
- if (!planId)
136
- continue;
137
- counts.set(planId, (counts.get(planId) ?? 0) + 1);
138
- }
139
- const planIds = Array.from(counts.keys());
140
- const plans = await Promise.all(planIds.map((id) => this.planModel.get(id)));
141
- const items = [];
142
- for (let i = 0; i < planIds.length; i += 1) {
143
- const plan = plans[i];
144
- if (!plan)
145
- continue;
146
- items.push({
147
- id: plan._id,
148
- title: plan.name,
149
- value: counts.get(planIds[i]) ?? 0,
150
- });
151
- }
152
- items.sort((a, b) => b.value - a.value);
153
- return items.slice(0, TOP_PLANS_LIMIT);
116
+ async paidInvoices(_user, from, to, compareFrom, compareTo) {
117
+ const range = (0, revenue_1.parsePeriod)(from, to);
118
+ const comparison = (0, revenue_1.parseComparison)(compareFrom, compareTo);
119
+ const documents = await loadSettledDocuments(earliestStart(range, comparison));
120
+ return (0, revenue_1.paidInvoicesChart)(documents, range, comparison, (0, config_1.getReportingCurrency)());
154
121
  }
155
- async chartRevenue(_user) {
156
- const now = Date.now();
157
- const buckets = new Map();
158
- for (let bucket = REVENUE_BUCKETS - 1; bucket >= 0; bucket -= 1) {
159
- const date = new Date(now - bucket * DAYS_PER_MONTH * time_1.MS_PER_DAY);
160
- const key = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}`;
161
- buckets.set(key, 0);
162
- }
163
- const cutoff = new Date(now - REVENUE_BUCKETS * DAYS_PER_MONTH * time_1.MS_PER_DAY);
164
- const invoices = await this.invoiceModel.table
165
- .getAll(PAID_STATUS, "status")
166
- .filter((row) => row.key("issuedAt").ge(cutoff))
167
- .pluck("amount", "issuedAt")
168
- .run();
169
- for (const invoice of invoices) {
170
- const rawIssued = invoice.issuedAt;
171
- if (!rawIssued)
172
- continue;
173
- const issued = rawIssued instanceof Date ? rawIssued : new Date(rawIssued);
174
- const key = `${issued.getFullYear()}-${String(issued.getMonth() + 1).padStart(2, "0")}`;
175
- if (buckets.has(key)) {
176
- buckets.set(key, (buckets.get(key) ?? 0) + (invoice.amount ?? 0) / PRICE_DIVIDER);
177
- }
178
- }
179
- const data = Array.from(buckets.entries()).map(([x, y]) => ({ x, y }));
122
+ async workspacesByStatus(_user) {
123
+ const { rows, currency } = await this.summary();
180
124
  return {
181
- value: sumValues(data),
182
- series: [{ name: REVENUE_SERIES_NAME, data }],
125
+ items: (0, headline_items_1.workspacesByStatusItems)((0, directory_summary_1.summariseDirectory)(rows, new Date(), currency)),
183
126
  };
184
127
  }
185
- async chartSubscriptionsByStatus(_user) {
186
- const counts = await this.countSubscriptionsByStatus();
187
- const data = Array.from(counts.entries()).map(([status, count]) => {
188
- const label = formatStatusLabel(status);
189
- return { x: label, y: count, label };
190
- });
128
+ async plansByMrr(_user) {
129
+ const { rows, currency } = await this.summary();
130
+ return { items: (0, headline_items_1.plansByMrrItems)(rows, currency) };
131
+ }
132
+ async activity(_user, kind) {
133
+ const sources = await (0, activity_sources_1.loadActivitySources)(null, ACTIVITY_LIMIT);
191
134
  return {
192
- value: sumValues(data),
193
- series: [{ name: SUBSCRIPTIONS_SERIES_NAME, data }],
135
+ items: (0, activity_1.buildActivityFeed)(sources, {
136
+ kind: (0, activity_1.parseActivityKind)(kind),
137
+ limit: ACTIVITY_LIMIT,
138
+ linkOf: paths_1.workspaceDetailPath,
139
+ now: new Date(),
140
+ }),
194
141
  };
195
142
  }
196
- async recentActivity(_user) {
197
- const tenants = await this.tenantModel.table
198
- .pluck("_id", "name", "createdAt")
199
- .run();
200
- const invoices = await this.invoiceModel.table
201
- .getAll(PAID_STATUS, "status")
202
- .pluck("_id", "amount", "issuedAt")
203
- .run();
204
- const entries = [
205
- ...tenants.map((tenant) => ({
206
- id: `workspace-${tenant._id}`,
207
- icon: "i-ph-building",
208
- iconColor: "primary",
209
- title: tenant.name ?? "",
210
- subtitle: "saas.dashboard.activity.workspace_created",
211
- timestamp: toTimestamp(tenant.createdAt),
212
- })),
213
- ...invoices.map((invoice) => ({
214
- id: `invoice-${invoice._id}`,
215
- icon: "i-ph-receipt",
216
- iconColor: "success",
217
- title: formatInvoiceAmount(invoice.amount),
218
- subtitle: "saas.dashboard.activity.invoice_paid",
219
- timestamp: toTimestamp(invoice.issuedAt),
220
- })),
221
- ];
222
- entries.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
223
- return entries.slice(0, RECENT_ACTIVITY_LIMIT);
224
- }
225
143
  }
226
144
  exports.SaasDashboardController = SaasDashboardController;
227
145
  __decorate([
228
- (0, interface_database_decorators_1.Model)(db_1.TenantModel),
229
- __metadata("design:type", db_1.TenantModel)
230
- ], SaasDashboardController.prototype, "tenantModel", void 0);
231
- __decorate([
232
- (0, interface_database_decorators_1.Model)(db_2.TenantSubscriptionModel, interface_database_1.CROSS_INSTANCE),
233
- __metadata("design:type", db_2.TenantSubscriptionModel)
234
- ], SaasDashboardController.prototype, "tenantSubscriptionModel", void 0);
235
- __decorate([
236
- (0, interface_database_decorators_1.Model)(db_2.PlanModel),
237
- __metadata("design:type", db_2.PlanModel)
238
- ], SaasDashboardController.prototype, "planModel", void 0);
239
- __decorate([
240
- (0, interface_database_decorators_1.Model)(db_2.InvoiceModel, interface_database_1.CROSS_INSTANCE),
241
- __metadata("design:type", db_2.InvoiceModel)
242
- ], SaasDashboardController.prototype, "invoiceModel", void 0);
243
- __decorate([
244
- (0, interface_database_decorators_1.Model)(db_2.TenantBillingStateModel),
245
- __metadata("design:type", db_2.TenantBillingStateModel)
246
- ], SaasDashboardController.prototype, "tenantBillingStateModel", void 0);
247
- __decorate([
248
- (0, interface_api_1.Get)("/kpi/workspaces"),
146
+ (0, interface_api_1.Get)("/headline"),
249
147
  __param(0, (0, auth_1.AuthOwnerOnly)()),
250
148
  __metadata("design:type", Function),
251
149
  __metadata("design:paramtypes", [Function]),
252
150
  __metadata("design:returntype", Promise)
253
- ], SaasDashboardController.prototype, "kpiWorkspaces", null);
151
+ ], SaasDashboardController.prototype, "headline", null);
254
152
  __decorate([
255
- (0, interface_api_1.Get)("/kpi/mrr"),
153
+ (0, interface_api_1.Get)("/attention"),
256
154
  __param(0, (0, auth_1.AuthOwnerOnly)()),
257
155
  __metadata("design:type", Function),
258
156
  __metadata("design:paramtypes", [Function]),
259
157
  __metadata("design:returntype", Promise)
260
- ], SaasDashboardController.prototype, "kpiMrr", null);
158
+ ], SaasDashboardController.prototype, "attention", null);
261
159
  __decorate([
262
- (0, interface_api_1.Get)("/kpi/active-subscriptions"),
160
+ (0, interface_api_1.Get)("/churn"),
263
161
  __param(0, (0, auth_1.AuthOwnerOnly)()),
162
+ __param(1, (0, interface_api_1.Parameter)("from", "query")),
163
+ __param(2, (0, interface_api_1.Parameter)("to", "query")),
164
+ __param(3, (0, interface_api_1.Parameter)("compareFrom", "query")),
165
+ __param(4, (0, interface_api_1.Parameter)("compareTo", "query")),
264
166
  __metadata("design:type", Function),
265
- __metadata("design:paramtypes", [Function]),
167
+ __metadata("design:paramtypes", [Function, Object, Object, Object, Object]),
266
168
  __metadata("design:returntype", Promise)
267
- ], SaasDashboardController.prototype, "kpiActive", null);
169
+ ], SaasDashboardController.prototype, "churn", null);
268
170
  __decorate([
269
- (0, interface_api_1.Get)("/kpi/open-invoices"),
171
+ (0, interface_api_1.Get)("/paid-invoices"),
270
172
  __param(0, (0, auth_1.AuthOwnerOnly)()),
173
+ __param(1, (0, interface_api_1.Parameter)("from", "query")),
174
+ __param(2, (0, interface_api_1.Parameter)("to", "query")),
175
+ __param(3, (0, interface_api_1.Parameter)("compareFrom", "query")),
176
+ __param(4, (0, interface_api_1.Parameter)("compareTo", "query")),
271
177
  __metadata("design:type", Function),
272
- __metadata("design:paramtypes", [Function]),
178
+ __metadata("design:paramtypes", [Function, Object, Object, Object, Object]),
273
179
  __metadata("design:returntype", Promise)
274
- ], SaasDashboardController.prototype, "kpiOpen", null);
180
+ ], SaasDashboardController.prototype, "paidInvoices", null);
275
181
  __decorate([
276
- (0, interface_api_1.Get)("/kpi/state-active"),
182
+ (0, interface_api_1.Get)("/workspaces-by-status"),
277
183
  __param(0, (0, auth_1.AuthOwnerOnly)()),
278
184
  __metadata("design:type", Function),
279
185
  __metadata("design:paramtypes", [Function]),
280
186
  __metadata("design:returntype", Promise)
281
- ], SaasDashboardController.prototype, "kpiStateActive", null);
187
+ ], SaasDashboardController.prototype, "workspacesByStatus", null);
282
188
  __decorate([
283
- (0, interface_api_1.Get)("/kpi/state-free"),
189
+ (0, interface_api_1.Get)("/plans-by-mrr"),
284
190
  __param(0, (0, auth_1.AuthOwnerOnly)()),
285
191
  __metadata("design:type", Function),
286
192
  __metadata("design:paramtypes", [Function]),
287
193
  __metadata("design:returntype", Promise)
288
- ], SaasDashboardController.prototype, "kpiStateFree", null);
194
+ ], SaasDashboardController.prototype, "plansByMrr", null);
289
195
  __decorate([
290
- (0, interface_api_1.Get)("/kpi/state-past-due"),
196
+ (0, interface_api_1.Get)("/activity"),
291
197
  __param(0, (0, auth_1.AuthOwnerOnly)()),
198
+ __param(1, (0, interface_api_1.Parameter)("kind", "query")),
292
199
  __metadata("design:type", Function),
293
- __metadata("design:paramtypes", [Function]),
294
- __metadata("design:returntype", Promise)
295
- ], SaasDashboardController.prototype, "kpiStatePastDue", null);
296
- __decorate([
297
- (0, interface_api_1.Get)("/top-plans"),
298
- __param(0, (0, auth_1.AuthOwnerOnly)()),
299
- __metadata("design:type", Function),
300
- __metadata("design:paramtypes", [Function]),
301
- __metadata("design:returntype", Promise)
302
- ], SaasDashboardController.prototype, "topPlans", null);
303
- __decorate([
304
- (0, interface_api_1.Get)("/chart/revenue"),
305
- __param(0, (0, auth_1.AuthOwnerOnly)()),
306
- __metadata("design:type", Function),
307
- __metadata("design:paramtypes", [Function]),
308
- __metadata("design:returntype", Promise)
309
- ], SaasDashboardController.prototype, "chartRevenue", null);
310
- __decorate([
311
- (0, interface_api_1.Get)("/chart/subscriptions-by-status"),
312
- __param(0, (0, auth_1.AuthOwnerOnly)()),
313
- __metadata("design:type", Function),
314
- __metadata("design:paramtypes", [Function]),
315
- __metadata("design:returntype", Promise)
316
- ], SaasDashboardController.prototype, "chartSubscriptionsByStatus", null);
317
- __decorate([
318
- (0, interface_api_1.Get)("/recent-activity"),
319
- __param(0, (0, auth_1.AuthOwnerOnly)()),
320
- __metadata("design:type", Function),
321
- __metadata("design:paramtypes", [Function]),
200
+ __metadata("design:paramtypes", [Function, Object]),
322
201
  __metadata("design:returntype", Promise)
323
- ], SaasDashboardController.prototype, "recentActivity", null);
202
+ ], SaasDashboardController.prototype, "activity", null);
324
203
  //# sourceMappingURL=dashboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/dashboard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAA4D;AAC5D,uEAAgE;AAChE,6FAAkE;AAClE,qDAA2D;AAC3D,yDAA+D;AAE/D,iCAKkB;AAClB,2CAA8C;AAE9C,MAAM,aAAa,GAA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,EAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC1B,WAAA,IAAA,yBAAS,EAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACxB,WAAA,IAAA,yBAAS,EAAC,aAAa,EAAE,OAAO,CAAC,CAAA;IACjC,WAAA,IAAA,yBAAS,EAAC,WAAW,EAAE,OAAO,CAAC,CAAA;;;;2DAajC;AAGK;IADL,IAAA,mBAAG,EAAC,uBAAuB,CAAC;IAE1B,WAAA,IAAA,oBAAa,GAAE,CAAA;;;;iEAQjB;AAGK;IADL,IAAA,mBAAG,EAAC,eAAe,CAAC;IAElB,WAAA,IAAA,oBAAa,GAAE,CAAA;;;;yDAIjB;AAGK;IADL,IAAA,mBAAG,EAAC,WAAW,CAAC;IAEd,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,MAAM,EAAE,OAAO,CAAC,CAAA;;;;uDAW5B"}
@@ -1,12 +1,19 @@
1
1
  export * from "./billing-settings";
2
+ export * from "./billing-stats";
2
3
  export * from "./credit-notes-issue";
3
4
  export * from "./dashboard";
4
5
  export * from "./plan-deletion";
6
+ export * from "./plan-dialogs";
7
+ export * from "./plan-migration-export";
8
+ export * from "./plan-migrations";
5
9
  export * from "./plans";
6
10
  export * from "./platform-notes";
7
11
  export * from "./platform-owners";
8
12
  export * from "./segments";
13
+ export * from "./segments-export";
14
+ export * from "./stripe-dashboard";
9
15
  export * from "./users-detail";
16
+ export * from "./workspace-detail";
10
17
  export * from "./workspace-invitations";
11
18
  export * from "./workspace-operator-actions";
12
19
  export * from "./workspaces-admin";
@@ -15,14 +15,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./billing-settings"), exports);
18
+ __exportStar(require("./billing-stats"), exports);
18
19
  __exportStar(require("./credit-notes-issue"), exports);
19
20
  __exportStar(require("./dashboard"), exports);
20
21
  __exportStar(require("./plan-deletion"), exports);
22
+ __exportStar(require("./plan-dialogs"), exports);
23
+ __exportStar(require("./plan-migration-export"), exports);
24
+ __exportStar(require("./plan-migrations"), exports);
21
25
  __exportStar(require("./plans"), exports);
22
26
  __exportStar(require("./platform-notes"), exports);
23
27
  __exportStar(require("./platform-owners"), exports);
24
28
  __exportStar(require("./segments"), exports);
29
+ __exportStar(require("./segments-export"), exports);
30
+ __exportStar(require("./stripe-dashboard"), exports);
25
31
  __exportStar(require("./users-detail"), exports);
32
+ __exportStar(require("./workspace-detail"), exports);
26
33
  __exportStar(require("./workspace-invitations"), exports);
27
34
  __exportStar(require("./workspace-operator-actions"), exports);
28
35
  __exportStar(require("./workspaces-admin"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,0CAAwB;AACxB,mDAAiC;AACjC,oDAAkC;AAClC,6CAA2B;AAC3B,iDAA+B;AAC/B,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,iDAA+B;AAC/B,0DAAwC;AACxC,oDAAkC;AAClC,0CAAwB;AACxB,mDAAiC;AACjC,oDAAkC;AAClC,6CAA2B;AAC3B,oDAAkC;AAClC,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC"}