From 9b61909eabff13ff64572e0978e48b81c85d4cbf Mon Sep 17 00:00:00 2001 From: Darius Date: Fri, 21 Nov 2025 16:24:10 +0100 Subject: [PATCH] Generic Commit; Most likely a fix or small feature --- dist/fastify.d.ts | 6 ++++-- dist/fastify.d.ts.map | 2 +- dist/fastify.js | 10 ++++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/dist/fastify.d.ts b/dist/fastify.d.ts index 31ffdf2..386eaff 100644 --- a/dist/fastify.d.ts +++ b/dist/fastify.d.ts @@ -3,13 +3,15 @@ export type ServiceResult = { result: T; successful: boolean; }; -export declare abstract class Client { +export declare abstract class BaseClient { private axiosInstance; constructor(axiosInstance: AxiosInstance); + getAxios(): AxiosInstance; } -export declare abstract class Service { +export declare abstract class BaseService { private client; constructor(client: T); + getClient(): T; getSuccessfulResult(result: R): ServiceResult; getErrorResult(error: string): ServiceResult; } diff --git a/dist/fastify.d.ts.map b/dist/fastify.d.ts.map index 811e826..3fc18e4 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,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,MAAM;IAC1B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;CAGzC;AAED,8BAAsB,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,MAAM,CAAI;gBAEN,MAAM,EAAE,CAAC;IAIrB,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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/dist/fastify.js b/dist/fastify.js index 4a08744..48dd7e5 100644 --- a/dist/fastify.js +++ b/dist/fastify.js @@ -1,14 +1,20 @@ -export class Client { +export class BaseClient { axiosInstance; constructor(axiosInstance) { this.axiosInstance = axiosInstance; } + getAxios() { + return this.axiosInstance; + } } -export class Service { +export class BaseService { client; constructor(client) { this.client = client; } + getClient() { + return this.client; + } getSuccessfulResult(result) { return { result,