Skip to content

Commit

Permalink
fix: made party origin mandatory in the *Args types
Browse files Browse the repository at this point in the history
  • Loading branch information
zoemaas committed Apr 2, 2024
1 parent 2be4684 commit d8e8560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/contact-manager/src/types/IContactManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export type UpdateRelationshipArgs = {

export type AddContactTypeArgs = {
type: ContactTypeEnum
origin?: PartyOrigin
origin: PartyOrigin
name: string
tenantId: string
description?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class PartyTypeEntity {
type!: PartyTypeEnum

@Column('simple-enum', { name: 'origin', enum: PartyOrigin, default: 'external', nullable: false, unique: false })
origin: PartyOrigin
origin!: PartyOrigin

@Column({ name: 'name', length: 255, nullable: false, unique: true })
@IsNotEmpty({ message: 'Blank names are not allowed' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export type UpdateRelationshipArgs = {

export type AddPartyTypeArgs = {
type: PartyTypeEnum
origin?: PartyOrigin
origin: PartyOrigin
name: string
tenantId: string
description?: string
Expand Down

0 comments on commit d8e8560

Please sign in to comment.