Skip to content

Commit

Permalink
Merge pull request #298 from skedify/types/add-office-subject-availab…
Browse files Browse the repository at this point in the history
…ility-settings

docs: add OfficeSubjectAvailabilitySettings API types
  • Loading branch information
BenSwennen authored Jul 20, 2021
2 parents 6af0781 + 317decc commit e5315e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ declare module "skedify-sdk" {
employees(id: string): GenericAPI<Employee>;

offices(): GenericAPI<Office[]>;
offices(id: string): GenericAPI<Office>;
offices(id: string): GenericAPI<Office> & {
subjectAvailabilitySettings(): GenericAPI<OfficeSubjectAvailabilitySettings[]>;
subjectAvailabilitySettings(id?: string): GenericAPI<OfficeSubjectAvailabilitySettings>;
};

leadSegments(): GenericAPI<LeadSegment[]>;
leadSegments(id: string): GenericAPI<LeadSegment>;
Expand Down
5 changes: 5 additions & 0 deletions types/subject.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ declare module "skedify-sdk" {
updated_at?: string;
}

export interface OfficeSubjectAvailabilitySettings extends SubjectAvailabilitySettings {
subject_id: string;
office_id: string
}

export interface SubjectTranslation {
id: string;
subject_id: string;
Expand Down

0 comments on commit e5315e8

Please sign in to comment.