diff --git a/types/employees.d.ts b/types/employees.d.ts index bb0a48e..f1b3f1a 100644 --- a/types/employees.d.ts +++ b/types/employees.d.ts @@ -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; diff --git a/types/index.d.ts b/types/index.d.ts index e18cb5f..c8ca66b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -24,6 +24,7 @@ declare module "skedify-sdk" { type WithCreate = T & { create: () => Response }; type WithDelete = T & { delete: () => Response }; + type WithFilter = { [key in keyof T | AdditionalFilters]: (param: T[key]) => void; }; @@ -182,7 +183,10 @@ declare module "skedify-sdk" { employees(id: string): GenericAPI; offices(): GenericAPI; - offices(id: string): GenericAPI; + offices(id: string): GenericAPI & { + subjectAvailabilitySettings(): GenericAPI; + subjectAvailabilitySettings(id?: string): GenericAPI; + }; leadSegments(): GenericAPI; leadSegments(id: string): GenericAPI; diff --git a/types/subject.d.ts b/types/subject.d.ts index 7adb488..1a2f343 100644 --- a/types/subject.d.ts +++ b/types/subject.d.ts @@ -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;