reference event data model changes

This commit is contained in:
Chad Scharf 2020-07-20 15:21:01 -04:00
parent 9ca79c4929
commit 97d24f5abf
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
import { StateService } from '../../abstractions/state.service'; import { StateService } from '../../abstractions/state.service';
import { KdfType } from '../../enums/kdfType'; import { KdfType } from '../../enums/kdfType';
import { ReferenceEventData } from '../../models/domain/referenceEventData'; import { ReferenceEventRequest } from '../../models/request/referenceEventRequest';
export class RegisterComponent { export class RegisterComponent {
name: string = ''; name: string = '';
@ -23,7 +23,7 @@ export class RegisterComponent {
showPassword: boolean = false; showPassword: boolean = false;
formPromise: Promise<any>; formPromise: Promise<any>;
masterPasswordScore: number; masterPasswordScore: number;
referenceData: ReferenceEventData; referenceData: ReferenceEventRequest;
protected successRoute = 'login'; protected successRoute = 'login';
private masterPasswordStrengthTimeout: any; private masterPasswordStrengthTimeout: any;

View File

@ -1,4 +1,4 @@
export class ReferenceEventData { export class ReferenceEventRequest {
id: string; id: string;
layout: string; layout: string;
flow: string; flow: string;

View File

@ -1,7 +1,7 @@
import { KeysRequest } from './keysRequest'; import { KeysRequest } from './keysRequest';
import { ReferenceEventRequest } from './referenceEventRequest';
import { KdfType } from '../../enums/kdfType'; import { KdfType } from '../../enums/kdfType';
import { ReferenceEventData } from '../domain/referenceEventData';
export class RegisterRequest { export class RegisterRequest {
name: string; name: string;
@ -14,10 +14,10 @@ export class RegisterRequest {
organizationUserId: string; organizationUserId: string;
kdf: KdfType; kdf: KdfType;
kdfIterations: number; kdfIterations: number;
referenceData: ReferenceEventData; referenceData: ReferenceEventRequest;
constructor(email: string, name: string, masterPasswordHash: string, masterPasswordHint: string, key: string, constructor(email: string, name: string, masterPasswordHash: string, masterPasswordHint: string, key: string,
kdf: KdfType, kdfIterations: number, referenceData: ReferenceEventData) { kdf: KdfType, kdfIterations: number, referenceData: ReferenceEventRequest) {
this.name = name; this.name = name;
this.email = email; this.email = email;
this.masterPasswordHash = masterPasswordHash; this.masterPasswordHash = masterPasswordHash;