Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
types(server): add rule constraints for or
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 12, 2022
1 parent 3dc1924 commit f42059f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/types/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export interface NotRuleConstraints {
not: Rules
}

export interface OrRuleConstraints {
// eslint-disable-next-line no-use-before-define
or: Rules[]
}

export interface UniqueEmployeeScheduleRuleConstraint {
uniqueEmployeeSchedule: {
userIDPointer: string
Expand Down Expand Up @@ -124,7 +129,8 @@ export type RuleContraints = Partial<
& SizeConstraints
& RestorableEmployeeScheduleConstraints
& UniqueConsultationScheduleConstraints
& DoesBelongToCurrentUserConstraints<any>
& DoesBelongToCurrentUserConstraints<unknown>
& OrRuleConstraints
>

/**
Expand Down

0 comments on commit f42059f

Please sign in to comment.