diff --git a/dist/fastify.d.ts.map b/dist/fastify.d.ts.map index a8b7703..d021be2 100644 --- a/dist/fastify.d.ts.map +++ b/dist/fastify.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IACxC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,qBAAa,SAAS;IACF,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;CAChC;AAED,8BAAsB,UAAU;IAC/B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,QAAQ,IAAI,aAAa;CAGzB;AAED,8BAAsB,WAAW,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAI;gBAEN,MAAM,EAAE,CAAC;IAIrB,SAAS,IAAI,CAAC;IAId,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;IAO7D,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;CAMpD"} \ No newline at end of file +{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IACxC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,qBAAa,SAAS;IACF,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;CAChC;AAED,8BAAsB,UAAU;IAC/B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,QAAQ,IAAI,aAAa;CAGzB;AAED,8BAAsB,WAAW,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAI;gBAEN,MAAM,EAAE,CAAC;IAIrB,SAAS,IAAI,CAAC;IAId,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;IAO7D,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;CAOpD"} \ No newline at end of file diff --git a/dist/fastify.js b/dist/fastify.js index affa020..fc82b36 100644 --- a/dist/fastify.js +++ b/dist/fastify.js @@ -1,3 +1,4 @@ +import { logWarning } from "./logger"; export class API_Error { error; constructor(error) { @@ -28,6 +29,7 @@ export class BaseService { }; } getErrorResult(error) { + logWarning(error); return { result: error, successful: false, diff --git a/dist/homepage.d.ts b/dist/homepage.d.ts index bc500e7..d71afc2 100644 --- a/dist/homepage.d.ts +++ b/dist/homepage.d.ts @@ -1,8 +1,10 @@ +import type { GristRecord_PersonalGoals } from "./grist"; import type { API_HA_DeskPosition } from "./homeassistant"; import type { TidalGetCurrent } from "./tidal"; export type FullInformation = { ha_desk_position: API_HA_DeskPosition | null; ha_temp: string | null; tidal_current: TidalGetCurrent | null; + grist_personal_goals: GristRecord_PersonalGoals | null; }; //# sourceMappingURL=homepage.d.ts.map \ No newline at end of file diff --git a/dist/homepage.d.ts.map b/dist/homepage.d.ts.map index 064706c..9380766 100644 --- a/dist/homepage.d.ts.map +++ b/dist/homepage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../src/homepage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,eAAe,GAAG,IAAI,CAAC;CACtC,CAAC"} \ No newline at end of file +{"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../src/homepage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,eAAe,GAAG,IAAI,CAAC;IACtC,oBAAoB,EAAE,yBAAyB,GAAG,IAAI,CAAC;CACvD,CAAC"} \ No newline at end of file diff --git a/src/fastify.ts b/src/fastify.ts index 8ae4207..93e0431 100644 --- a/src/fastify.ts +++ b/src/fastify.ts @@ -1,4 +1,5 @@ import type { AxiosInstance } from "axios"; +import { logWarning } from "./logger"; export type ServiceResult = { result: T; @@ -40,6 +41,7 @@ export abstract class BaseService { } getErrorResult(error: string): ServiceResult { + logWarning(error); return { result: error, successful: false, diff --git a/src/homepage.ts b/src/homepage.ts index cc8c6aa..95d8ddc 100644 --- a/src/homepage.ts +++ b/src/homepage.ts @@ -1,3 +1,4 @@ +import type { GristRecord_PersonalGoals } from "./grist"; import type { API_HA_DeskPosition } from "./homeassistant"; import type { TidalGetCurrent } from "./tidal"; @@ -5,4 +6,5 @@ export type FullInformation = { ha_desk_position: API_HA_DeskPosition | null; ha_temp: string | null; tidal_current: TidalGetCurrent | null; + grist_personal_goals: GristRecord_PersonalGoals | null; };