Files
esign/packages/lib/utils/organisations-claims.ts
zeekay 5ac718ad1d rip: enterprise dirs + paywalls — full AGPL, no commercial-license code
Delete packages/ee/ and packages/trpc/server/enterprise-router/. The features
those directories gated — limits, custom email domains, SAML/SSO authentication
portal, account linking — are now permanently available to every user. Stripe
billing surface (subscriptions, plans, invoices, paywall webhook) is gone in
its entirety.

- Move limits provider/server/client/handler/schema/constants from
  packages/ee/server-only/limits/ into packages/lib/server-only/limits/.
  getServerLimits always returns the self-hosted unlimited plan; no plan tier
  lookup, no IS_BILLING_ENABLED gating.
- Move email-domain helpers (create/delete/verify/reregister) from
  packages/ee/server-only/lib/ into packages/lib/server-only/email-domain/.
- Move link-organisation-account + send-organisation-account-link-confirmation
  -email from packages/ee/server-only/lib/ into
  packages/lib/server-only/organisation/.
- Move every non-stripe route from packages/trpc/server/enterprise-router/
  into packages/trpc/server/organisation-router/ and expose them at
  trpc.organisation.{email,emailDomain,authenticationPortal}.*.
- Delete the entire stripe subtree (ee + lib stripe SDK + lib billing utils
  + apps/remix stripe.webhook route).
- IS_BILLING_ENABLED() now always returns false; downstream paywall branches
  become dead code that always opens the feature up.
- Strip the billing settings page and dialog, billing banner/portal button,
  billing-plans selector, and stripe-customer admin route.
2026-06-07 12:15:28 -07:00

18 lines
481 B
TypeScript

import type { SubscriptionClaim } from '@prisma/client';
import { DEFAULT_MINIMUM_ENVELOPE_ITEM_COUNT } from '../server-only/limits/constants';
export const generateDefaultSubscriptionClaim = (): Omit<
SubscriptionClaim,
'id' | 'organisation' | 'createdAt' | 'updatedAt' | 'originalSubscriptionClaimId'
> => {
return {
name: '',
teamCount: 1,
memberCount: 1,
envelopeItemCount: DEFAULT_MINIMUM_ENVELOPE_ITEM_COUNT,
locked: false,
flags: {},
};
};