update mock data

This commit is contained in:
Mads Rasmussen
2024-09-03 15:10:28 +02:00
parent ce3fd605d5
commit 47c49bcdcb
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,8 @@
import type { MemberResponseModel, MemberItemResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
import {
type MemberResponseModel,
type MemberItemResponseModel,
MemberKindModel,
} from '@umbraco-cms/backoffice/external/backend-api';
export type UmbMockMemberModel = MemberResponseModel & MemberItemResponseModel;
@@ -26,6 +30,7 @@ export const data: Array<UmbMockMemberModel> = [
updateDate: '2023-02-06T15:32:24.957009',
},
],
kind: MemberKindModel.DEFAULT,
},
{
email: 'member2@member.com',
@@ -50,6 +55,7 @@ export const data: Array<UmbMockMemberModel> = [
updateDate: '2023-02-06T15:32:24.957009',
},
],
kind: MemberKindModel.DEFAULT,
},
{
email: 'member3@member.com',
@@ -74,5 +80,6 @@ export const data: Array<UmbMockMemberModel> = [
updateDate: '2023-02-06T15:31:51.354764',
},
],
kind: MemberKindModel.DEFAULT,
},
];

View File

@@ -66,6 +66,7 @@ const detailResponseMapper = (item: UmbMockMemberModel): MemberResponseModel =>
isApproved: item.isApproved,
isLockedOut: item.isLockedOut,
isTwoFactorEnabled: item.isTwoFactorEnabled,
kind: item.kind,
lastLockoutDate: item.lastLockoutDate,
lastLoginDate: item.lastLoginDate,
lastPasswordChangeDate: item.lastPasswordChangeDate,
@@ -79,6 +80,7 @@ const detailResponseMapper = (item: UmbMockMemberModel): MemberResponseModel =>
const itemResponseMapper = (item: UmbMockMemberModel): MemberItemResponseModel => {
return {
id: item.id,
kind: item.kind,
memberType: item.memberType,
variants: item.variants,
};