Skip to content

Commit

Permalink
#1403: ts-lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jul 5, 2024
1 parent ad26a0d commit 1d7d9f0
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 35 deletions.
4 changes: 2 additions & 2 deletions @types/lib/metadataTypes/User.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ declare class User extends MetadataType {
/**
* manages post retrieve steps
*
* @param {MetadataTypeItem} metadata a single item
* @param {UserDocument} metadata a single item
* @returns {MetadataTypeItem | void} a single item
*/
static postRetrieveTasks(metadata: MetadataTypeItem): MetadataTypeItem | void;
static postRetrieveTasks(metadata: UserDocument): MetadataTypeItem | void;
}
declare namespace User {
let userIdBuMap: {};
Expand Down
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/User.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 40 additions & 2 deletions @types/types/mcdev.d.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export type UserDocument = {
/**
* (API only)
*/
IsLocked?: boolean | string;
IsLocked?: boolean;
/**
* used to unlock a user that has IsLocked === true
*/
Expand Down Expand Up @@ -548,7 +548,45 @@ export type UserDocumentDiff = {
export type UserDocumentMap = {
[x: string]: UserDocument;
};
export type UserDocumentDocument = UserDocument & object;
export type UserDocumentDocumentHelper = {
/**
* docs: user.ActiveFlag === true ? '✓' : '-'
*/
ActiveFlagDocs: string;
/**
* docs: user.IsAPIUser === true ? '✓' : '-'
*/
IsAPIUserDocs: string;
/**
* docs: user.MustChangePassword === true ? '✓' : '-'
*/
MustChangePasswordDocs: string;
/**
* docs: default MID; BUName after we resolved it
*/
DefaultBusinessUnitDocs: string;
/**
* docs: list of roles as concatenated string
*/
RolesDocs: string;
/**
* docs: list of associated BUs as concatenated string
*/
AssociatedBusDocs: string;
/**
* docs: user name who last modified this user
*/
ModifiedBy: string | number;
/**
* docs: name of timezone
*/
TimeZoneName: string;
/**
* docs: if the user cannot login
*/
IsLockedDocs: string;
};
export type UserDocumentDocument = UserDocument & UserDocumentDocumentHelper;
export type AccountUserConfiguration = {
/**
* wrapper
Expand Down
Loading

0 comments on commit 1d7d9f0

Please sign in to comment.