-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-0101' into SPSH-1622
- Loading branch information
Showing
17 changed files
with
411 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { OXEmail, OXUserName } from '../../../shared/types/ox-ids.types.js'; | ||
|
||
export class OxUserBlacklistEntry<WasPersisted extends boolean> { | ||
public constructor( | ||
public id: Persisted<string, WasPersisted>, | ||
public readonly createdAt: Persisted<Date, WasPersisted>, | ||
public readonly updatedAt: Persisted<Date, WasPersisted>, | ||
public email: OXEmail, | ||
public name: string, | ||
public username: OXUserName, | ||
) {} | ||
|
||
public static construct( | ||
id: string, | ||
createdAt: Date, | ||
updatedAt: Date, | ||
email: OXEmail, | ||
name: string, | ||
username: OXUserName, | ||
): OxUserBlacklistEntry<true> { | ||
return new OxUserBlacklistEntry(id, createdAt, updatedAt, email, name, username); | ||
} | ||
|
||
public static createNew(email: OXEmail, name: string, username: OXUserName): OxUserBlacklistEntry<false> { | ||
return new OxUserBlacklistEntry(undefined, undefined, undefined, email, name, username); | ||
} | ||
} |
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
Oops, something went wrong.