Skip to content

Commit

Permalink
Merge pull request #128 from ConductionNL/feature/PC108-101/contactmo…
Browse files Browse the repository at this point in the history
…ment-my-moments

finished "see only my contactmoments"
  • Loading branch information
Sudo-Thijn authored Jan 3, 2025
2 parents 672151e + 515aae1 commit e225e48
Show file tree
Hide file tree
Showing 6 changed files with 1,502 additions and 1,407 deletions.
1 change: 1 addition & 0 deletions src/entities/contactmoment/contactmoment.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const mockContactMomentData = (): TContactMoment[] => [
startDate: new Date().toISOString(),
status: 'open',
contactmoment: 'Contactmoment 3',
medewerker: 'Medewerker 3',
},
]

Expand Down
3 changes: 3 additions & 0 deletions src/entities/contactmoment/contactmoment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class ContactMoment implements TContactMoment {
public startDate: string
public status: string
public contactmoment: string
public medewerker: string

constructor(source: TContactMoment) {
this.id = source.id || ''
Expand All @@ -25,6 +26,7 @@ export class ContactMoment implements TContactMoment {
this.startDate = source.startDate || ''
this.status = source.status || 'open'
this.contactmoment = source.contactmoment || ''
this.medewerker = source.medewerker || ''
}

public validate(): SafeParseReturnType<TContactMoment, unknown> {
Expand All @@ -39,6 +41,7 @@ export class ContactMoment implements TContactMoment {
startDate: z.string().min(1),
status: z.string().min(1),
contactmoment: z.string().min(1),
medewerker: z.string().min(1),
})

return schema.safeParse(this)
Expand Down
1 change: 1 addition & 0 deletions src/entities/contactmoment/contactmoment.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export type TContactMoment = {
startDate: string;
status: string;
contactmoment: string;
medewerker: string;
}
Loading

0 comments on commit e225e48

Please sign in to comment.