types.module.ts 955 Bytes
Newer Older
1
2
3
4
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';


5
6
export interface IdP {
  id: number;
7
8
9
10
11
12
13
14
  name: string;
}

export interface AuthInfo {
  idps: IdP[];
  default: number;
}

15
16
17
18
19
export interface AllAuthInfo {
  idps: IdP[];
  selected: IdP;
}

20
21
22
23
interface Group {
  name: string;
}

24
25
26
27
28
29
30
export interface NewSSHKey {
  name: string;
  key: string;
}

export interface SSHKey {
  id: number;
31
32
33
34
35
  name: string;
  key: string;
}

export interface Service {
36
  id: number;
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  name: string;
}

interface Deployment {
  service: Service;
  ssh_keys: SSHKey[];
}

export interface User {
  email: string;
  userinfo: any;
  ssh_keys: SSHKey[];
  deployments: Deployment[];
}

52
53
54
55
56
interface StateAPI {
  services: Service[];
  logged_in: boolean;
}

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
export interface UserState {
  services: Service[];
  logged_in: boolean;
  user: User;
}


@NgModule({
  imports: [
    CommonModule
  ],
  declarations: [
  ]
})
export class TypesModule { }