-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e54c94
commit ae481f5
Showing
7 changed files
with
105 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,72 @@ | ||
export class Device { | ||
public id: string = ''; | ||
public name: string = ''; | ||
public givenName: string = ''; | ||
public lastSeen: string = ''; | ||
public ipAddresses: string[] = [] | ||
public forcedTags: string[] = [] | ||
public validTags: string[] = [] | ||
public invalidTags: string[] = [] | ||
public user: { name: string } = { name: '' } | ||
public id: string = ''; | ||
public name: string = ''; | ||
public givenName: string = ''; | ||
public lastSeen: string = ''; | ||
public ipAddresses: string[] = []; | ||
public forcedTags: string[] = []; | ||
public validTags: string[] = []; | ||
public invalidTags: string[] = []; | ||
public user: { name: string } = { name: '' }; | ||
public online?: boolean; | ||
|
||
public constructor(init?: Partial<Device>) { | ||
Object.assign(this, init); | ||
} | ||
public constructor(init?: Partial<Device>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
|
||
export class ACL { | ||
public groups: {[key: string]: [string]} = {} | ||
public groups: { [key: string]: [string] } = {}; | ||
|
||
public constructor(init?: Partial<Route>) { | ||
Object.assign(this, init); | ||
} | ||
public constructor(init?: Partial<Route>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
|
||
export class Route { | ||
// current (hs 18+) method of handling a route | ||
advertised: boolean = true; | ||
prefix: string = ""; | ||
enabled: boolean = false; | ||
id: number = 0; | ||
// current (hs 18+) method of handling a route | ||
advertised: boolean = true; | ||
prefix: string = ''; | ||
enabled: boolean = false; | ||
id: number = 0; | ||
|
||
public constructor(init?: Partial<Route>) { | ||
Object.assign(this, init); | ||
} | ||
public constructor(init?: Partial<Route>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
|
||
export class APIKey { | ||
id: string = ''; | ||
prefix: string = ''; | ||
expiration: string = ''; | ||
createdAt: string = ''; | ||
lastSeen: string = ''; | ||
id: string = ''; | ||
prefix: string = ''; | ||
expiration: string = ''; | ||
createdAt: string = ''; | ||
lastSeen: string = ''; | ||
|
||
public constructor(init?: Partial<Route>) { | ||
Object.assign(this, init); | ||
} | ||
public constructor(init?: Partial<Route>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
|
||
export class PreAuthKey { | ||
public user: string = ''; | ||
public id: string = ''; | ||
public key: string = ''; | ||
public createdAt: string = ''; | ||
public expiration: string = ''; | ||
public reusable: boolean = false; | ||
public ephemeral: boolean = false; | ||
public used: boolean = false; | ||
public user: string = ''; | ||
public id: string = ''; | ||
public key: string = ''; | ||
public createdAt: string = ''; | ||
public expiration: string = ''; | ||
public reusable: boolean = false; | ||
public ephemeral: boolean = false; | ||
public used: boolean = false; | ||
|
||
public constructor(init?: Partial<PreAuthKey>) { | ||
Object.assign(this, init); | ||
} | ||
public constructor(init?: Partial<PreAuthKey>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
|
||
export class User { | ||
public id: string = ''; | ||
public name: string = ''; | ||
public createdAt: string = ''; | ||
public constructor(init?: Partial<User>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
public id: string = ''; | ||
public name: string = ''; | ||
public createdAt: string = ''; | ||
public constructor(init?: Partial<User>) { | ||
Object.assign(this, init); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters