選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

40 行
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. }