UNPKG

@agendize/vue-settings

Version:
19 lines (18 loc) 1.01 kB
import { CalendarApi } from "@agendize/js-calendar-api"; import { Locale } from "@agendize/az-i18n"; import { PageWithTabsAndPanelOptions } from "@agendize/design-system"; import { ComputedRef, Ref } from "vue"; import { CompanySchedulingRightsEntity } from "@agendize/js-calendar-api"; import { Router } from "vue-router"; import { ToastInterface } from "vue-toastification"; export declare function RightsDetailsViewModel(api: CalendarApi, router: Router, toaster: ToastInterface, locale: Locale, organisationEmail: string, userId: string): RightsDetailsViewModelType; interface RightsDetailsViewModelType { pageOptions: ComputedRef<PageWithTabsAndPanelOptions>; tableDescription: any; loading: Ref<boolean>; backToList: () => void; saveRights: () => void; fetchCompaniesRight: (page: number) => Promise<CompanySchedulingRightsEntity[]>; filterCompaniesRight: (rights: CompanySchedulingRightsEntity[], search: string) => CompanySchedulingRightsEntity[]; } export {};