/* post-processed by ./scripts/process-types.go */ /* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ export interface DocumentOut { id: string; path: string; title: string; } export interface Group { createdAt: Date | string; currency: string; id: string; name: string; updatedAt: Date | string; } export interface GroupStatistics { totalItemPrice: number; totalItems: number; totalLabels: number; totalLocations: number; totalUsers: number; totalWithWarranty: number; } export interface GroupUpdate { currency: string; name: string; } export interface ItemAttachment { createdAt: Date | string; document: DocumentOut; id: string; type: string; updatedAt: Date | string; } export interface ItemAttachmentUpdate { title: string; type: string; } export interface ItemCreate { description: string; labelIds: string[]; /** Edges */ locationId: string; name: string; parentId: string | null; } export interface ItemField { booleanValue: boolean; id: string; name: string; numberValue: number; textValue: string; type: string; } export interface ItemOut { archived: boolean; /** @example "0" */ assetId: string; attachments: ItemAttachment[]; children: ItemSummary[]; createdAt: Date | string; description: string; fields: ItemField[]; id: string; insured: boolean; labels: LabelSummary[]; /** Warranty */ lifetimeWarranty: boolean; /** Edges */ location: LocationSummary | null; manufacturer: string; modelNumber: string; name: string; /** Extras */ notes: string; parent: ItemSummary | null; purchaseFrom: string; /** @example "0" */ purchasePrice: string; /** Purchase */ purchaseTime: Date | string; quantity: number; serialNumber: string; soldNotes: string; /** @example "0" */ soldPrice: string; /** Sold */ soldTime: Date | string; soldTo: string; updatedAt: Date | string; warrantyDetails: string; warrantyExpires: Date | string; } export interface ItemSummary { archived: boolean; createdAt: Date | string; description: string; id: string; insured: boolean; labels: LabelSummary[]; /** Edges */ location: LocationSummary | null; name: string; /** @example "0" */ purchasePrice: string; quantity: number; updatedAt: Date | string; } export interface ItemUpdate { archived: boolean; assetId: string; description: string; fields: ItemField[]; id: string; insured: boolean; labelIds: string[]; /** Warranty */ lifetimeWarranty: boolean; /** Edges */ locationId: string; manufacturer: string; modelNumber: string; name: string; /** Extras */ notes: string; parentId: string | null; purchaseFrom: string; /** @example "0" */ purchasePrice: string; /** Purchase */ purchaseTime: Date | string; quantity: number; /** Identifications */ serialNumber: string; soldNotes: string; /** @example "0" */ soldPrice: string; /** Sold */ soldTime: Date | string; soldTo: string; warrantyDetails: string; /** Sold */ warrantyExpires: Date | string; } export interface LabelCreate { color: string; description: string; name: string; } export interface LabelOut { createdAt: Date | string; description: string; id: string; items: ItemSummary[]; name: string; updatedAt: Date | string; } export interface LabelSummary { createdAt: Date | string; description: string; id: string; name: string; updatedAt: Date | string; } export interface LocationCreate { description: string; name: string; parentId: string | null; } export interface LocationOut { children: LocationSummary[]; createdAt: Date | string; description: string; id: string; items: ItemSummary[]; name: string; parent: LocationSummary; updatedAt: Date | string; } export interface LocationOutCount { createdAt: Date | string; description: string; id: string; itemCount: number; name: string; updatedAt: Date | string; } export interface LocationSummary { createdAt: Date | string; description: string; id: string; name: string; updatedAt: Date | string; } export interface LocationUpdate { description: string; id: string; name: string; parentId: string | null; } export interface MaintenanceEntry { /** Sold */ completedDate: Date | string; /** @example "0" */ cost: string; description: string; id: string; name: string; /** Sold */ scheduledDate: Date | string; } export interface MaintenanceEntryCreate { /** Sold */ completedDate: Date | string; /** @example "0" */ cost: string; description: string; name: string; /** Sold */ scheduledDate: Date | string; } export interface MaintenanceEntryUpdate { /** Sold */ completedDate: Date | string; /** @example "0" */ cost: string; description: string; name: string; /** Sold */ scheduledDate: Date | string; } export interface MaintenanceLog { costAverage: number; costTotal: number; entries: MaintenanceEntry[]; itemId: string; } export interface NotifierCreate { isActive: boolean; /** * @minLength 1 * @maxLength 255 */ name: string; url: string; } export interface NotifierOut { createdAt: Date | string; groupId: string; id: string; isActive: boolean; name: string; updatedAt: Date | string; userId: string; } export interface NotifierUpdate { isActive: boolean; /** * @minLength 1 * @maxLength 255 */ name: string; url: string | null; } export interface PaginationResultItemSummary { items: ItemSummary[]; page: number; pageSize: number; total: number; } export interface TotalsByOrganizer { id: string; name: string; total: number; } export interface TreeItem { children: TreeItem[]; id: string; name: string; type: string; } export interface UserOut { email: string; groupId: string; groupName: string; id: string; isOwner: boolean; isSuperuser: boolean; name: string; } export interface UserUpdate { email: string; name: string; } export interface ValueOverTime { end: string; entries: ValueOverTimeEntry[]; start: string; valueAtEnd: number; valueAtStart: number; } export interface ValueOverTimeEntry { date: Date | string; name: string; value: number; } export interface ServerErrorResponse { error: string; fields: Record; } export interface ServerResult { details: any; error: boolean; item: any; message: string; } export interface ServerResults { items: any; } export interface UserRegistration { email: string; name: string; password: string; token: string; } export interface ActionAmountResult { completed: number; } export interface ApiSummary { allowRegistration: boolean; build: Build; demo: boolean; health: boolean; message: string; title: string; versions: string[]; } export interface Build { buildTime: string; commit: string; version: string; } export interface ChangePassword { current: string; new: string; } export interface GroupInvitation { expiresAt: Date | string; token: string; uses: number; } export interface GroupInvitationCreate { expiresAt: Date | string; uses: number; } export interface ItemAttachmentToken { token: string; } export interface TokenResponse { attachmentToken: string; expiresAt: Date | string; token: string; }