Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

40 linhas
1.0 KiB

  1. import type { RepositoryVisibility } from './git/gitProvider';
  2. import type { RequiredSubscriptionPlans, Subscription } from './subscription';
  3. export const enum Features {
  4. Stashes = 'stashes',
  5. Timeline = 'timeline',
  6. Worktrees = 'worktrees',
  7. StashOnlyStaged = 'stashOnlyStaged',
  8. }
  9. export type FeatureAccess =
  10. | {
  11. allowed: true;
  12. subscription: { current: Subscription; required?: undefined };
  13. visibility?: RepositoryVisibility;
  14. }
  15. | {
  16. allowed: false | 'mixed';
  17. subscription: { current: Subscription; required?: RequiredSubscriptionPlans };
  18. visibility?: RepositoryVisibility;
  19. };
  20. export type RepoFeatureAccess =
  21. | {
  22. allowed: true;
  23. subscription: { current: Subscription; required?: undefined };
  24. visibility?: RepositoryVisibility;
  25. }
  26. | {
  27. allowed: false;
  28. subscription: { current: Subscription; required?: RequiredSubscriptionPlans };
  29. visibility?: RepositoryVisibility;
  30. };
  31. export const enum PlusFeatures {
  32. Timeline = 'timeline',
  33. Worktrees = 'worktrees',
  34. Graph = 'graph',
  35. Focus = 'focus',
  36. }