Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6574f8f672 | ||
|
|
ea6605f9dc | ||
|
|
953afcbc84 | ||
|
|
1d4ade717a | ||
|
|
25ff0b9903 | ||
|
|
2f8f3ea017 | ||
|
|
c3f0fd84ac | ||
|
|
64eb6fbf4e | ||
|
|
50c951e0d3 | ||
|
|
6086c6dbcc | ||
|
|
30b5c74c06 | ||
|
|
a835f220e2 |
6
dist/fastify.d.ts
vendored
6
dist/fastify.d.ts
vendored
@@ -1,8 +1,12 @@
|
||||
import { AxiosInstance } from "axios";
|
||||
import type { AxiosInstance } from "axios";
|
||||
export type ServiceResult<T = unknown> = {
|
||||
result: T;
|
||||
successful: boolean;
|
||||
};
|
||||
export declare class API_Error {
|
||||
error: string;
|
||||
constructor(error: string);
|
||||
}
|
||||
export declare abstract class BaseClient {
|
||||
private axiosInstance;
|
||||
constructor(axiosInstance: AxiosInstance);
|
||||
|
||||
2
dist/fastify.d.ts.map
vendored
2
dist/fastify.d.ts.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,8BAAsB,UAAU;IAC9B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,QAAQ,IAAI,aAAa;CAG1B;AAED,8BAAsB,WAAW,CAAC,CAAC;IACjC,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;CAMrD"}
|
||||
{"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;IACvC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,qBAAa,SAAS;IACD,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;CACjC;AAED,8BAAsB,UAAU;IAC9B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,QAAQ,IAAI,aAAa;CAG1B;AAED,8BAAsB,WAAW,CAAC,CAAC;IACjC,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;CAMrD"}
|
||||
6
dist/fastify.js
vendored
6
dist/fastify.js
vendored
@@ -1,3 +1,9 @@
|
||||
export class API_Error {
|
||||
error;
|
||||
constructor(error) {
|
||||
this.error = error;
|
||||
}
|
||||
}
|
||||
export class BaseClient {
|
||||
axiosInstance;
|
||||
constructor(axiosInstance) {
|
||||
|
||||
5
dist/index.d.ts
vendored
5
dist/index.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
export * from "./fastify";
|
||||
export * from "./homeassistant";
|
||||
export * as Logger from "./logger";
|
||||
export * from "./logger";
|
||||
export * from "./tidal";
|
||||
export * as TimeHelper from "./timehelper";
|
||||
export * from "./timehelper";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
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,iBAAiB,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
||||
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -1,4 +1,5 @@
|
||||
export * from "./fastify";
|
||||
export * from "./homeassistant";
|
||||
export * as Logger from "./logger";
|
||||
export * from "./logger";
|
||||
export * from "./tidal";
|
||||
export * as TimeHelper from "./timehelper";
|
||||
export * from "./timehelper";
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@dpu/shared",
|
||||
"version": "1.1.4",
|
||||
"version": "1.2.4",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@dpu/shared",
|
||||
"version": "1.1.4",
|
||||
"version": "1.2.4",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.9",
|
||||
"chalk": "^5.6.2",
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "@dpu/shared",
|
||||
"version": "1.1.4",
|
||||
"version": "1.2.4",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
import { AxiosInstance } from "axios";
|
||||
import type { AxiosInstance } from "axios";
|
||||
|
||||
export type ServiceResult<T = unknown> = {
|
||||
result: T;
|
||||
successful: boolean;
|
||||
};
|
||||
|
||||
export class API_Error {
|
||||
constructor(public error: string) {}
|
||||
}
|
||||
|
||||
export abstract class BaseClient {
|
||||
private axiosInstance: AxiosInstance;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from "./fastify";
|
||||
export * from "./homeassistant";
|
||||
export * as Logger from "./logger";
|
||||
export * from "./logger";
|
||||
export * from "./tidal";
|
||||
export * as TimeHelper from "./timehelper";
|
||||
export * from "./timehelper";
|
||||
|
||||
Reference in New Issue
Block a user