update mock data
This commit is contained in:
@@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user