diff --git a/src/models/entry.ts b/src/models/entry.ts new file mode 100644 index 00000000..f5076b45 --- /dev/null +++ b/src/models/entry.ts @@ -0,0 +1,6 @@ +export abstract class Entry { + referenceId: string; + externalId: string; + creationDate: Date; + revisonDate: Date; +} diff --git a/src/models/groupEntry.ts b/src/models/groupEntry.ts new file mode 100644 index 00000000..12169692 --- /dev/null +++ b/src/models/groupEntry.ts @@ -0,0 +1,7 @@ +import { Entry } from './entry'; + +export class GroupEntry extends Entry { + name: string; + userMemberExternalIds = new Set(); + groupMemberReferenceIds = new Set(); +} diff --git a/src/models/ldapConfiguration.ts b/src/models/ldapConfiguration.ts index ba8adb13..d853acfe 100644 --- a/src/models/ldapConfiguration.ts +++ b/src/models/ldapConfiguration.ts @@ -1,13 +1,13 @@ import { DirectoryType } from '../enums/directoryType'; export class LdapConfiguration { - ssl: boolean = false; + ssl = false; hostname: string; - port: number = 389; + port = 389; domain: string; rootPath: string; - currentUser: boolean = false; + currentUser = false; username: string; password: string; - ad: boolean = true; + ad = true; } diff --git a/src/models/syncConfiguration.ts b/src/models/syncConfiguration.ts index d0054779..87c8506d 100644 --- a/src/models/syncConfiguration.ts +++ b/src/models/syncConfiguration.ts @@ -1,10 +1,10 @@ export class SyncConfiguration { - users: boolean = false; - groups: boolean = false; - interval: number = 5; + users = false; + groups = false; + interval = 5; userFilter: string; groupFilter: string; - removeDisabled: boolean = false; + removeDisabled = false; // Ldap properties groupObjectClass: string; userObjectClass: string; @@ -13,7 +13,7 @@ export class SyncConfiguration { groupNameAttribute: string; userEmailAttribute: string; memberAttribute: string; - useEmailPrefixSuffix: boolean = false; + useEmailPrefixSuffix = false; emailPrefixAttribute: string; emailSuffix: string; creationDateAttribute: string; diff --git a/src/models/userEntry.ts b/src/models/userEntry.ts new file mode 100644 index 00000000..51c5e2b5 --- /dev/null +++ b/src/models/userEntry.ts @@ -0,0 +1,7 @@ +import { Entry } from './entry'; + +export class UserEntry extends Entry { + email: string; + disabled = false; + deleted = false; +}