mirror of
https://github.com/hay-kot/homebox.git
synced 2025-06-11 23:02:28 +00:00
use typed imports
This commit is contained in:
parent
5440fc60e1
commit
26b17e5cf8
54 changed files with 80 additions and 77 deletions
|
@ -1,5 +1,5 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { ActionAmountResult } from "../types/data-contracts";
|
||||
import type { ActionAmountResult } from "../types/data-contracts";
|
||||
|
||||
export class ActionsAPI extends BaseAPI {
|
||||
ensureAssetIDs() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { ItemSummary } from "../types/data-contracts";
|
||||
import { PaginationResult } from "../types/non-generated";
|
||||
import type { ItemSummary } from "../types/data-contracts";
|
||||
import type { PaginationResult } from "../types/non-generated";
|
||||
|
||||
export class AssetsApi extends BaseAPI {
|
||||
async get(id: string, page = 1, pageSize = 50) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import {
|
||||
import type {
|
||||
CurrenciesCurrency,
|
||||
Group,
|
||||
GroupInvitation,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { parseDate } from "../base/base-api";
|
||||
import {
|
||||
import type {
|
||||
ItemAttachmentUpdate,
|
||||
ItemCreate,
|
||||
ItemOut,
|
||||
|
@ -13,8 +13,8 @@ import {
|
|||
MaintenanceEntryUpdate,
|
||||
MaintenanceLog,
|
||||
} from "../types/data-contracts";
|
||||
import { AttachmentTypes, PaginationResult } from "../types/non-generated";
|
||||
import { Requests } from "~~/lib/requests";
|
||||
import type { AttachmentTypes, PaginationResult } from "../types/non-generated";
|
||||
import type { Requests } from "~~/lib/requests";
|
||||
|
||||
export type ItemsQuery = {
|
||||
orderBy?: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { LabelCreate, LabelOut } from "../types/data-contracts";
|
||||
import type { LabelCreate, LabelOut } from "../types/data-contracts";
|
||||
|
||||
export class LabelsApi extends BaseAPI {
|
||||
getAll() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { LocationOutCount, LocationCreate, LocationOut, LocationUpdate, TreeItem } from "../types/data-contracts";
|
||||
import type { LocationOutCount, LocationCreate, LocationOut, LocationUpdate, TreeItem } from "../types/data-contracts";
|
||||
|
||||
export type LocationsQuery = {
|
||||
filterChildren: boolean;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { NotifierCreate, NotifierOut, NotifierUpdate } from "../types/data-contracts";
|
||||
import type { NotifierCreate, NotifierOut, NotifierUpdate } from "../types/data-contracts";
|
||||
|
||||
export class NotifiersAPI extends BaseAPI {
|
||||
getAll() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { GroupStatistics, TotalsByOrganizer, ValueOverTime } from "../types/data-contracts";
|
||||
import type { GroupStatistics, TotalsByOrganizer, ValueOverTime } from "../types/data-contracts";
|
||||
|
||||
function YYYY_MM_DD(date?: Date): string {
|
||||
if (!date) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { BaseAPI, route } from "../base";
|
||||
import { ChangePassword, UserOut } from "../types/data-contracts";
|
||||
import { Result } from "../types/non-generated";
|
||||
import type { ChangePassword, UserOut } from "../types/data-contracts";
|
||||
import type { Result } from "../types/non-generated";
|
||||
|
||||
export class UserApi extends BaseAPI {
|
||||
public self() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue