-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Zwart
committed
Mar 24, 2024
1 parent
cc09d1e
commit b947d87
Showing
34 changed files
with
265 additions
and
22 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
src/services/moonraker/dto/database/database-namespace-item.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface DatabaseNamespaceItemDto { | ||
namespace: string; | ||
key: string; | ||
value: number; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/services/moonraker/dto/database/database-namespace-list.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type Namespaces = "gcode_metadata" | "history" | "moonraker" | "test_namespace" | string; | ||
|
||
export interface DatabaseNamespaceListDto { | ||
namespaces: Namespaces[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface EnqueueJobDto { | ||
filenames: string[]; | ||
// Set this to true and existing queue is cleared | ||
reset: boolean; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/services/moonraker/dto/job-queue/job-queue-status.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export interface JobQueueStatusDto { | ||
queued_jobs: QueuedJob[]; | ||
queue_state: "ready" | "loading" | "starting" | "paused" | string; | ||
} | ||
|
||
export interface QueuedJob { | ||
filename: string; | ||
job_id: string; | ||
// unix timestamp | ||
time_added: number; | ||
// seconds | ||
time_in_queue: number; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
src/services/moonraker/dto/server-announcements/announcement-action.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface AnnouncementActionDto { | ||
feed: string; | ||
action: "added" | "remove" | string; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/services/moonraker/dto/server-announcements/announcement-entry-id.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface AnnouncementEntryIdDto { | ||
entry_id: string; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/services/moonraker/dto/server-announcements/announcement-feeds.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface AnnouncementFeedsDto { | ||
feeds: ("moonraker" | "klipper" | string)[]; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/services/moonraker/dto/server-announcements/announcement-list.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export interface AnnouncementListDto { | ||
entries: Entry[]; | ||
feeds: string[]; | ||
} | ||
|
||
export interface Entry { | ||
entry_id: string; | ||
url: string; | ||
title: string; | ||
description: string; | ||
priority: string; | ||
date: number; | ||
dismissed: boolean; | ||
date_dismissed: any; | ||
dismiss_wake: any; | ||
source: string; | ||
feed: string; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WebcamDto } from "@/services/moonraker/dto/server-webcams/webcam-list.dto"; | ||
|
||
export interface WebcamItemDto { | ||
webcam: WebcamDto; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/services/moonraker/dto/server-webcams/webcam-list.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export interface WebcamListDto { | ||
webcams: WebcamDto[]; | ||
} | ||
|
||
export interface WebcamDto { | ||
uid: string; | ||
name: string; | ||
location: string; | ||
icon: string | "mdiWebcam"; | ||
enabled: boolean; | ||
service: string; | ||
target_fps: number; | ||
target_fps_idle: number; | ||
stream_url: string; | ||
snapshot_url: string; | ||
flip_horizontal: boolean; | ||
flip_vertical: boolean; | ||
rotation: number; | ||
aspect_ratio: string; | ||
extra_data: ExtraData; | ||
source: string | "database"; | ||
} | ||
|
||
export interface ExtraData {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface WebcamTestDto { | ||
name: string; | ||
snapshot_reachable: boolean; | ||
snapshot_url: string; | ||
stream_url: string; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export interface NotifierListDto { | ||
notifiers: Notifier[]; | ||
} | ||
|
||
export interface Notifier { | ||
name: string; | ||
url: string; | ||
events: string[]; | ||
body: string; | ||
title: any; | ||
attach?: string; | ||
} |