Web API for code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
560 B

  1. import {Org} from '../org';
  2. import {User} from '../user';
  3. export enum RepoVisibility {
  4. PRIVATE = 'PRIVATE',
  5. INTERNAL = 'INTERNAL',
  6. PUBLIC = 'PUBLIC',
  7. }
  8. export type Owner = User | Org;
  9. export enum RepoAction {
  10. REPO_CREATED = 'REPO_CREATED',
  11. REPO_REMOVED = 'REPO_REMOVED',
  12. }
  13. export enum RepoAvailableService {
  14. UPLOAD_PACK = 'git-upload-pack',
  15. RECEIVE_PACK = 'git-receive-pack',
  16. }
  17. export type Repo = {
  18. id: Buffer,
  19. name: string,
  20. ownerId: Buffer,
  21. ownerType: string,
  22. visibility: string,
  23. }
  24. export type CreateRepoData = Omit<Repo, 'id'>;