add homepage information type
This commit is contained in:
8
dist/homepage.d.ts
vendored
Normal file
8
dist/homepage.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { API_HA_DeskPosition } from "./homeassistant";
|
||||
import { TidalGetCurrent } from "./tidal";
|
||||
export type FullInformation = {
|
||||
ha_desk_position: API_HA_DeskPosition;
|
||||
ha_temp: string;
|
||||
tidal_current: TidalGetCurrent;
|
||||
};
|
||||
//# sourceMappingURL=homepage.d.ts.map
|
||||
1
dist/homepage.d.ts.map
vendored
Normal file
1
dist/homepage.d.ts.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../src/homepage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,eAAe,CAAC;CAC/B,CAAA"}
|
||||
1
dist/homepage.js
vendored
Normal file
1
dist/homepage.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
1
dist/index.d.ts
vendored
1
dist/index.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
export * from "./fastify.js";
|
||||
export * from "./homeassistant.js";
|
||||
export * from "./homepage.js";
|
||||
export * from "./logger.js";
|
||||
export * from "./sse.js";
|
||||
export * from "./tidal.js";
|
||||
|
||||
2
dist/index.d.ts.map
vendored
2
dist/index.d.ts.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
||||
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -1,5 +1,6 @@
|
||||
export * from "./fastify.js";
|
||||
export * from "./homeassistant.js";
|
||||
export * from "./homepage.js";
|
||||
export * from "./logger.js";
|
||||
export * from "./sse.js";
|
||||
export * from "./tidal.js";
|
||||
|
||||
8
dist/sse.d.ts
vendored
8
dist/sse.d.ts
vendored
@@ -1,12 +1,12 @@
|
||||
export interface SseClient {
|
||||
export type SseClient = {
|
||||
id: number;
|
||||
send: (data: SseEvent) => void;
|
||||
}
|
||||
export interface SseEvent {
|
||||
};
|
||||
export type SseEvent = {
|
||||
type: string;
|
||||
data?: unknown;
|
||||
message?: string;
|
||||
}
|
||||
};
|
||||
export declare class SseService {
|
||||
private clients;
|
||||
addClient(client: SseClient): void;
|
||||
|
||||
2
dist/sse.d.ts.map
vendored
2
dist/sse.d.ts.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../src/sse.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,UAAU;IACtB,OAAO,CAAC,OAAO,CAAwB;IAEvC,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAOlC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAUpC,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAMpC,cAAc,IAAI,MAAM;CAGxB"}
|
||||
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../src/sse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAA;AAED,qBAAa,UAAU;IACtB,OAAO,CAAC,OAAO,CAAwB;IAEvC,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAOlC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAUpC,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAMpC,cAAc,IAAI,MAAM;CAGxB"}
|
||||
8
src/homepage.ts
Normal file
8
src/homepage.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { API_HA_DeskPosition } from "./homeassistant";
|
||||
import { TidalGetCurrent } from "./tidal";
|
||||
|
||||
export type FullInformation = {
|
||||
ha_desk_position: API_HA_DeskPosition;
|
||||
ha_temp: string;
|
||||
tidal_current: TidalGetCurrent;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
export * from "./fastify.js";
|
||||
export * from "./homeassistant.js";
|
||||
export * from "./homepage.js";
|
||||
export * from "./logger.js";
|
||||
export * from "./sse.js";
|
||||
export * from "./tidal.js";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { logInfo } from "./logger";
|
||||
|
||||
export interface SseClient {
|
||||
export type SseClient = {
|
||||
id: number;
|
||||
send: (data: SseEvent) => void;
|
||||
}
|
||||
|
||||
export interface SseEvent {
|
||||
export type SseEvent = {
|
||||
type: string;
|
||||
data?: unknown;
|
||||
message?: string;
|
||||
|
||||
Reference in New Issue
Block a user