@antelopejs/dms-saas 0.11.0 → 0.12.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 (87) hide show
  1. package/README.md +12 -12
  2. package/dist/data-api/platformOwner/admin-user-invoices.d.ts +1 -1
  3. package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +1 -1
  4. package/dist/data-api/platformOwner/credit-notes.d.ts +14 -1
  5. package/dist/data-api/platformOwner/features.d.ts +15 -2
  6. package/dist/data-api/platformOwner/invitations.d.ts +1 -1
  7. package/dist/data-api/platformOwner/invoices.d.ts +7 -1
  8. package/dist/data-api/platformOwner/members.d.ts +1 -1
  9. package/dist/data-api/platformOwner/plan-migrations.d.ts +1 -1
  10. package/dist/data-api/platformOwner/plans.d.ts +8 -2
  11. package/dist/data-api/platformOwner/plans.js +1 -1
  12. package/dist/data-api/platformOwner/plans.js.map +1 -1
  13. package/dist/data-api/platformOwner/segments.d.ts +14 -1
  14. package/dist/data-api/platformOwner/users.d.ts +14 -1
  15. package/dist/data-api/platformOwner/workspaces.d.ts +1 -1
  16. package/dist/data-api/tenant/tenant-invoices.d.ts +1 -1
  17. package/dist/invoice-line-items/recovery/task.model.d.ts +3 -3
  18. package/dist/operator-actions/db/lifecycle-delivery.model.d.ts +3 -3
  19. package/dist/operator-actions/db/operator-action.model.d.ts +3 -3
  20. package/dist/routes/platformOwner/plan-migration-export.js +4 -1
  21. package/dist/routes/platformOwner/plan-migration-export.js.map +1 -1
  22. package/dist/routes/platformOwner/plans.d.ts +1 -1
  23. package/dist/routes/platformOwner/platform-notes.d.ts +2 -1
  24. package/dist/routes/platformOwner/platform-notes.js +1 -1
  25. package/dist/routes/platformOwner/platform-notes.js.map +1 -1
  26. package/dist/routes/platformOwner/segments-export.js +4 -1
  27. package/dist/routes/platformOwner/segments-export.js.map +1 -1
  28. package/dist/routes/tenant/data-export.d.ts +2 -1
  29. package/dist/routes/tenant/data-export.js +1 -1
  30. package/dist/routes/tenant/data-export.js.map +1 -1
  31. package/dist/routes/tenant/tenant-billing.js +2 -1
  32. package/dist/routes/tenant/tenant-billing.js.map +1 -1
  33. package/dist/upcoming-invoice/db/preview-cache.model.d.ts +3 -3
  34. package/dist/utils/pagination.d.ts +2 -1
  35. package/dist/utils/pagination.js +3 -1
  36. package/dist/utils/pagination.js.map +1 -1
  37. package/dist/utils/row-instance.d.ts +2 -1
  38. package/dist/utils/row-instance.js.map +1 -1
  39. package/dist/utils/workspace-records.js.map +1 -1
  40. package/dist/workspaces/db/provisioning-attempt.model.d.ts +3 -3
  41. package/dist/workspaces/db/trial-identity.model.d.ts +3 -3
  42. package/frontend-vue/app/build/PayInvoicePanel.vue +4 -4
  43. package/frontend-vue/app/build/PlanChangeReview.vue +4 -4
  44. package/frontend-vue/app/build/PlanFeatureValueInput.vue +2 -2
  45. package/frontend-vue/app/build/components/FormFieldRow.vue +1 -1
  46. package/frontend-vue/app/build/components/RetirePlanDiff.vue +2 -2
  47. package/frontend-vue/app/build/public/OtherWorkspaces.vue +2 -2
  48. package/frontend-vue/app/build/public/PricingComparison.vue +2 -2
  49. package/frontend-vue/app/build/public/PricingFaq.vue +2 -2
  50. package/frontend-vue/app/build/public/PublicStage.vue +3 -3
  51. package/frontend-vue/app/build/public/RegistrationPlanCard.vue +5 -5
  52. package/frontend-vue/app/build/public/legal-html.ts +146 -0
  53. package/frontend-vue/app/build/workspace-detail/ComplimentaryDialog.vue +3 -3
  54. package/frontend-vue/app/build/workspace-detail/CreditDialog.vue +2 -2
  55. package/frontend-vue/app/build/workspace-detail/UpgradeDialog.vue +1 -1
  56. package/frontend-vue/app/components/BillingIdentityFields.vue +2 -2
  57. package/frontend-vue/app/components/DataExport.vue +8 -8
  58. package/frontend-vue/app/components/DataExportHistory.vue +2 -2
  59. package/frontend-vue/app/components/IssueCreditNoteModal.vue +2 -2
  60. package/frontend-vue/app/components/LegalLayout.vue +33 -30
  61. package/frontend-vue/app/components/PastDueAlert.vue +3 -3
  62. package/frontend-vue/app/components/PaymentMethodCard.vue +2 -2
  63. package/frontend-vue/app/components/PlanCard.vue +2 -2
  64. package/frontend-vue/app/components/PlanCardPublic.vue +3 -3
  65. package/frontend-vue/app/components/PlanEditorPreview.vue +4 -4
  66. package/frontend-vue/app/components/PlanUpgradeModal.vue +4 -4
  67. package/frontend-vue/app/components/PlatformNotes.vue +2 -2
  68. package/frontend-vue/app/components/Pricing.vue +10 -8
  69. package/frontend-vue/app/components/RefundButton.vue +3 -3
  70. package/frontend-vue/app/components/Register.vue +4 -2
  71. package/frontend-vue/app/components/RegistrationClosed.vue +1 -1
  72. package/frontend-vue/app/components/RetirePlanModal.vue +6 -6
  73. package/frontend-vue/app/components/SeatQuotaBanner.vue +8 -8
  74. package/frontend-vue/app/components/SegmentLivePreview.vue +4 -4
  75. package/frontend-vue/app/components/TenantBillingForm.vue +2 -2
  76. package/frontend-vue/app/components/TenantPlanCard.vue +8 -8
  77. package/frontend-vue/app/components/UserPlatformRoleCard.vue +2 -2
  78. package/frontend-vue/app/components/UserSegmentMatches.vue +2 -2
  79. package/frontend-vue/app/components/WorkspaceAdminCreateModal.vue +2 -2
  80. package/frontend-vue/app/components/WorkspaceInvitationLink.vue +1 -1
  81. package/frontend-vue/app/components/WorkspaceOperatorActions.vue +2 -2
  82. package/frontend-vue/app/components/WorkspaceSuspended.vue +9 -9
  83. package/frontend-vue/app/custom-pages/auth/no-workspace.vue +3 -3
  84. package/frontend-vue/build/backend-boundary.ts +8 -3
  85. package/frontend-vue/eslint.config.mjs +0 -1
  86. package/frontend-vue/package.json +1 -1
  87. package/package.json +18 -15
@@ -111,7 +111,7 @@ if (info.data.value) apply(info.data.value)
111
111
 
112
112
  <template>
113
113
  <form id="saas-billing-info-form" novalidate @submit.prevent="save">
114
- <DmsSection
114
+ <DmsSectionPanel
115
115
  :title="$t(`${KEY_PREFIX}.title`)"
116
116
  :description="$t(`${KEY_PREFIX}.description`)"
117
117
  >
@@ -147,7 +147,7 @@ if (info.data.value) apply(info.data.value)
147
147
  :vat-verification-status="vatVerificationStatus"
148
148
  :is-locked="!isTenantOwner"
149
149
  />
150
- </DmsSection>
150
+ </DmsSectionPanel>
151
151
  <DmsSaveBar
152
152
  v-if="isTenantOwner && !isLoading && !loadFailed"
153
153
  :dirty="changedFields.length > 0"
@@ -426,7 +426,7 @@ watch(
426
426
  </script>
427
427
 
428
428
  <template>
429
- <DmsCard class="grow" :title="$t(`${KEY_PREFIX}.title`)">
429
+ <DmsCardPanel class="grow" :title="$t(`${KEY_PREFIX}.title`)">
430
430
  <template v-if="canChangePlan && current" #actions>
431
431
  <UButton
432
432
  v-if="canResubscribe"
@@ -517,7 +517,7 @@ watch(
517
517
  </span>
518
518
  </p>
519
519
 
520
- <DmsMeter
520
+ <DmsMeterBar
521
521
  v-if="current.maxMembers > 0"
522
522
  :label="$t(`${KEY_PREFIX}.seats`)"
523
523
  :hint="seatHint"
@@ -534,12 +534,12 @@ watch(
534
534
  {{ $t(`${KEY_PREFIX}.manage_members`) }}
535
535
  </ULink>
536
536
  </template>
537
- </DmsMeter>
537
+ </DmsMeterBar>
538
538
  <p v-else class="text-muted text-sm">{{ seatHint }}</p>
539
539
 
540
540
  <DmsKeyValueList v-if="facts.length" :items="facts" dense />
541
541
 
542
- <DmsBanner
542
+ <DmsNoticeBanner
543
543
  v-if="pendingPlan"
544
544
  size="sm"
545
545
  tone="warning"
@@ -562,9 +562,9 @@ watch(
562
562
  {{ $t(`${KEY_PREFIX}.cancel_downgrade`) }}
563
563
  </UButton>
564
564
  </template>
565
- </DmsBanner>
565
+ </DmsNoticeBanner>
566
566
 
567
- <DmsBanner
567
+ <DmsNoticeBanner
568
568
  v-if="cancellationAt"
569
569
  size="sm"
570
570
  tone="error"
@@ -596,7 +596,7 @@ watch(
596
596
  {{ $t(`${KEY_PREFIX}.export_data`) }}
597
597
  </UButton>
598
598
  </template>
599
- </DmsBanner>
599
+ </DmsNoticeBanner>
600
600
 
601
601
  <p v-if="pastDueNote && !isAccessBlocked" class="text-muted text-sm">
602
602
  <UIcon name="i-ph-info" class="me-1 align-middle" />
@@ -649,5 +649,5 @@ watch(
649
649
  @changed="refresh"
650
650
  />
651
651
  <DmsSaasPendingCheckoutModal v-if="isTenantOwner" />
652
- </DmsCard>
652
+ </DmsCardPanel>
653
653
  </template>
@@ -45,7 +45,7 @@ async function openConfirm(): Promise<void> {
45
45
  </script>
46
46
 
47
47
  <template>
48
- <DmsCard :title="$t(`${I18N}.title`)">
48
+ <DmsCardPanel :title="$t(`${I18N}.title`)">
49
49
  <DmsSaasLoadFailure
50
50
  v-if="detail.status.value === 'error' && !user"
51
51
  @retry="detail.refresh()"
@@ -94,5 +94,5 @@ async function openConfirm(): Promise<void> {
94
94
  </span>
95
95
  </div>
96
96
  </div>
97
- </DmsCard>
97
+ </DmsCardPanel>
98
98
  </template>
@@ -35,7 +35,7 @@ function load(): Promise<void> {
35
35
  </script>
36
36
 
37
37
  <template>
38
- <DmsCard :padded="false">
38
+ <DmsCardPanel :padded="false">
39
39
  <DmsSaasLoadFailure
40
40
  v-if="hasFailed"
41
41
  class="m-4"
@@ -111,5 +111,5 @@ function load(): Promise<void> {
111
111
  </tr>
112
112
  </tbody>
113
113
  </table>
114
- </DmsCard>
114
+ </DmsCardPanel>
115
115
  </template>
@@ -281,7 +281,7 @@ onMounted(loadPlans)
281
281
  </FormFieldRow>
282
282
  <FormFieldRow :label="$t(`${C}.plan`)" required>
283
283
  <template #default="{ id }">
284
- <DmsSelect
284
+ <DmsInputSelect
285
285
  :id="id"
286
286
  v-model="planId"
287
287
  :items="planItems"
@@ -349,7 +349,7 @@ onMounted(loadPlans)
349
349
  </template>
350
350
  </FormFieldRow>
351
351
  </FormRows>
352
- <DmsBanner
352
+ <DmsNoticeBanner
353
353
  v-if="whatHappens"
354
354
  size="sm"
355
355
  tone="info"
@@ -109,7 +109,7 @@ onMounted(load)
109
109
  </template>
110
110
  </FormFieldRow>
111
111
  </FormRows>
112
- <DmsBanner
112
+ <DmsNoticeBanner
113
113
  size="sm"
114
114
  tone="warning"
115
115
  icon="i-ph-warning"
@@ -84,7 +84,7 @@ const rows = computed<OperatorRow[]>(() => {
84
84
  </script>
85
85
 
86
86
  <template>
87
- <DmsCard :title="$t(`${D}.title`)" :padded="false">
87
+ <DmsCardPanel :title="$t(`${D}.title`)" :padded="false">
88
88
  <div v-if="isLoading && !overview" class="flex flex-col gap-3 p-[18px]">
89
89
  <USkeleton v-for="index in 3" :key="index" class="h-10 w-full" />
90
90
  </div>
@@ -124,5 +124,5 @@ const rows = computed<OperatorRow[]>(() => {
124
124
  :tenant-id="tenantId"
125
125
  :workspace-name="overview.name"
126
126
  />
127
- </DmsCard>
127
+ </DmsCardPanel>
128
128
  </template>
@@ -211,7 +211,7 @@ onMounted(() => {
211
211
  <USkeleton class="h-72 w-full rounded-xl" />
212
212
  </div>
213
213
 
214
- <DmsCard v-else-if="loadError && !access">
214
+ <DmsCardPanel v-else-if="loadError && !access">
215
215
  <DmsEmptyState
216
216
  variant="error"
217
217
  :title="$t('saas.public.suspended.load_error')"
@@ -230,10 +230,10 @@ onMounted(() => {
230
230
  },
231
231
  ]"
232
232
  />
233
- </DmsCard>
233
+ </DmsCardPanel>
234
234
 
235
235
  <template v-else-if="access?.blocked && reasonView">
236
- <DmsBanner
236
+ <DmsNoticeBanner
237
237
  v-if="loadError"
238
238
  tone="error"
239
239
  size="sm"
@@ -241,7 +241,7 @@ onMounted(() => {
241
241
  :title="$t('saas.public.suspended.load_error')"
242
242
  :description="loadError"
243
243
  />
244
- <DmsCard :padded="false" class="flex items-center gap-3 px-4 py-3">
244
+ <DmsCardPanel :padded="false" class="flex items-center gap-3 px-4 py-3">
245
245
  <DmsIconWell tone="muted" size="lg">
246
246
  <span class="font-mono text-xs font-semibold">
247
247
  {{ workspaceInitials(access.workspace.name) }}
@@ -257,9 +257,9 @@ onMounted(() => {
257
257
  :label="statusView('workspace', reasonView.status).label"
258
258
  :tone="statusView('workspace', reasonView.status).tone"
259
259
  />
260
- </DmsCard>
260
+ </DmsCardPanel>
261
261
 
262
- <DmsCard variant="elevated" class="flex flex-col gap-5">
262
+ <DmsCardPanel variant="elevated" class="flex flex-col gap-5">
263
263
  <div class="flex items-start gap-3">
264
264
  <DmsIconWell :icon="reasonView.icon" tone="error" size="xl" />
265
265
  <div>
@@ -285,7 +285,7 @@ onMounted(() => {
285
285
  v-if="access.isTenantOwner"
286
286
  class="border-default flex flex-col gap-3 border-t pt-4"
287
287
  >
288
- <DmsEyebrow
288
+ <DmsEyebrowLabel
289
289
  as="h2"
290
290
  :label="$t('saas.public.suspended.owner.title')"
291
291
  />
@@ -321,7 +321,7 @@ onMounted(() => {
321
321
  v-else
322
322
  class="border-default flex flex-col gap-3 border-t pt-4"
323
323
  >
324
- <DmsEyebrow
324
+ <DmsEyebrowLabel
325
325
  as="h2"
326
326
  :label="$t('saas.public.suspended.member.title')"
327
327
  />
@@ -353,7 +353,7 @@ onMounted(() => {
353
353
  {{ $t('saas.public.suspended.member.no_owner') }}
354
354
  </p>
355
355
  </section>
356
- </DmsCard>
356
+ </DmsCardPanel>
357
357
 
358
358
  <OtherWorkspaces
359
359
  v-if="access.otherWorkspaces.length"
@@ -362,7 +362,7 @@ onMounted(async () => {
362
362
  novalidate
363
363
  @submit.prevent="submit"
364
364
  >
365
- <DmsBanner
365
+ <DmsNoticeBanner
366
366
  v-if="pending"
367
367
  tone="info"
368
368
  size="sm"
@@ -379,7 +379,7 @@ onMounted(async () => {
379
379
  @click="toLogin"
380
380
  />
381
381
  </template>
382
- </DmsBanner>
382
+ </DmsNoticeBanner>
383
383
 
384
384
  <UFormField
385
385
  :label="$t('saas.public.no_workspace.workspace_name')"
@@ -420,7 +420,7 @@ onMounted(async () => {
420
420
 
421
421
  <LegalAcceptance v-model="hasAcceptedLegal" :error="legalError" />
422
422
 
423
- <DmsBanner
423
+ <DmsNoticeBanner
424
424
  v-if="errorMessage"
425
425
  tone="error"
426
426
  icon="i-ph-warning-circle"
@@ -4,7 +4,7 @@ import type { DmsVitePluginEntry } from '#dms/frontend-build'
4
4
 
5
5
  type VitePlugin = Extract<DmsVitePluginEntry, { name: string }>
6
6
 
7
- const BACKEND_PACKAGE = '@antelopejs/dms-saas'
7
+ const BACKEND_PACKAGE = "@antelopejs/dms-saas"
8
8
  const BACKEND_SOURCE = 'src'
9
9
  const QUERY_OR_HASH = /[?#].*$/
10
10
 
@@ -74,6 +74,11 @@ function backendSourceFile(id: string): string | undefined {
74
74
  : undefined
75
75
  }
76
76
 
77
+ /** `path` with `/` separators, the form Vite gives an importer, so a boundary error names both paths alike on every OS. */
78
+ function forwardSlashes(path: string): string {
79
+ return path.split(sep).join('/')
80
+ }
81
+
77
82
  /**
78
83
  * Fails the build and the dev server when a module of the frontend resolves to
79
84
  * a file under the `src` of the backend package: the browser reaches the
@@ -113,9 +118,9 @@ function boundaryCheck(): VitePlugin {
113
118
  const from =
114
119
  importer === undefined
115
120
  ? 'an entry point'
116
- : importer.replace(QUERY_OR_HASH, '')
121
+ : forwardSlashes(importer.replace(QUERY_OR_HASH, ''))
117
122
  return this.error(
118
- `Backend boundary: ${from} imports ${file}, which is under the src of ${BACKEND_PACKAGE}. The frontend reaches the backend only through its HTTP interface.`,
123
+ `Backend boundary: ${from} imports ${forwardSlashes(file)}, which is under the src of ${BACKEND_PACKAGE}. The frontend reaches the backend only through its HTTP interface.`,
119
124
  )
120
125
  },
121
126
  }
@@ -7,7 +7,6 @@ export default [
7
7
  {
8
8
  files: ['**/*.ts', '**/*.vue'],
9
9
  languageOptions: { parserOptions: { parser: ts.parser } },
10
- rules: { 'vue/multi-word-component-names': 'off' },
11
10
  },
12
11
  { files: ['**/*.ts'], languageOptions: { parser: ts.parser } },
13
12
  ]
@@ -6,7 +6,7 @@
6
6
  "license": "Apache-2.0",
7
7
  "packageManager": "pnpm@10.6.5",
8
8
  "engines": {
9
- "@antelopejs/dms-frontend": ">=0.10.0 <0.11.0"
9
+ "@antelopejs/dms-frontend": ">=0.11.1 <0.12.0"
10
10
  },
11
11
  "scripts": {
12
12
  "format": "prettier --write .",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms-saas",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "SaaS module for the AntelopeJS DMS: self-service sign-up and pricing, plans that gate features, Stripe billing, workspace settings and a back office.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -45,26 +45,29 @@
45
45
  "registry": "https://registry.npmjs.org/"
46
46
  },
47
47
  "dependencies": {
48
- "@antelopejs/interface-api": ">=0.3.0 <1.0.0",
49
- "@antelopejs/interface-api-util": ">=0.3.2 <1.0.0",
50
- "@antelopejs/interface-core": ">=0.4.0 <1.0.0",
51
- "@antelopejs/interface-data-api": ">=0.6.1 <1.0.0",
52
- "@antelopejs/interface-database": ">=0.3.0 <1.0.0",
53
- "@antelopejs/interface-database-decorators": ">=0.3.1 <1.0.0",
54
- "@antelopejs/interface-dms": ">=0.12.0 <1.0.0",
48
+ "@antelopejs/interface-api": ">=0.3.3 <0.4.0",
49
+ "@antelopejs/interface-api-util": ">=0.3.2 <0.4.0",
50
+ "@antelopejs/interface-core": ">=0.5.1 <0.6.0",
51
+ "@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
52
+ "@antelopejs/interface-database": ">=0.4.0 <0.5.0",
53
+ "@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0",
54
+ "@antelopejs/interface-dms": ">=0.14.0 <0.15.0",
55
55
  "node-cron": "^4.2.1",
56
56
  "stripe": "^22.6.2",
57
57
  "zod": "^3.24.4",
58
- "@antelopejs/interface-dms-saas": "^0.8.0"
58
+ "@antelopejs/interface-dms-saas": "^0.10.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@antelopejs/core": "1.21.0",
62
- "@antelopejs/dms": ">=0.17.0 <1.0.0",
63
- "@antelopejs/dms-frontend": ">=0.10.0 <1.0.0",
64
- "@antelopejs/interface-mongodb": ">=0.0.6 <1.0.0",
65
- "@antelopejs/mongodb": "1.6.2",
61
+ "@antelopejs/core": "~1.23.2",
62
+ "@antelopejs/dms": ">=0.20.0 <0.21.0",
63
+ "@antelopejs/dms-frontend": ">=0.11.1 <0.12.0",
64
+ "@antelopejs/interface-file-storage": ">=0.1.8 <0.2.0",
65
+ "@antelopejs/interface-mongodb": ">=0.0.8 <0.1.0",
66
+ "@antelopejs/mongodb": "~1.8.1",
66
67
  "@total-typescript/shoehorn": "^0.1.2",
68
+ "@types/jsonwebtoken": "^9.0.10",
67
69
  "@types/node": "^24.0.0",
70
+ "@types/semver": "^7.7.1",
68
71
  "@vitejs/plugin-vue": "^6.0.10",
69
72
  "@vue/test-utils": "^2.5.1",
70
73
  "happy-dom": "^21.0.4",
@@ -79,7 +82,7 @@
79
82
  "vue": "^3.5.18"
80
83
  },
81
84
  "optionalDependencies": {
82
- "@antelopejs/interface-dms-automation": ">=0.6.0 <1.0.0"
85
+ "@antelopejs/interface-dms-automation": ">=0.6.2 <0.7.0"
83
86
  },
84
87
  "antelopeJs": {
85
88
  "baseUrl": "dist",