Skip to content

Commit

Permalink
Merge pull request #300 from skedify/develop
Browse files Browse the repository at this point in the history
release/next
  • Loading branch information
BenSwennen authored Jul 20, 2021
2 parents 3e0110d + d3571f5 commit 1bad487
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions types/employees.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ declare module "skedify-sdk" {
last_name: string | null;
language: string | null;
phone_number: string | null;
/**
* @deprecated Use employee.profile_picture
*/
profile_picture: string | null;
state: State;
timezone: string;
Expand Down
6 changes: 5 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ declare module "skedify-sdk" {
type WithCreate<T, Response> = T & { create: () => Response };
type WithDelete<T, Response> = T & { delete: () => Response };


type WithFilter<T, AdditionalFilters> = {
[key in keyof T | AdditionalFilters]: (param: T[key]) => void;
};
Expand Down Expand Up @@ -182,7 +183,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 1bad487

Please sign in to comment.