UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

68 lines 2.27 kB
import type { BaseResponse } from '../../../core/base-client'; import type { P21CoreClient } from '../client'; type ExecuteRequest = P21CoreClient['executeRequest']; /** * Creates the healthCheck resource methods * OpenAPI Path: /health-check → healthCheck.* * @description Health check endpoint for P21-Core service */ export declare function createHealthCheckResource(executeRequest: ExecuteRequest): { /** * Service health check * @fullPath api.p21Core.healthCheck.get * @service p21-core * @domain system-health * @dataMethod healthCheckData.get * @discoverable true */ get: () => Promise<{ params: Record<string, unknown> | unknown[]; data: { siteHash: string; siteId: string; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; }; /** * Creates the healthCheckData resource methods (data-only versions) */ export declare function createHealthCheckDataResource(healthCheck: ReturnType<typeof createHealthCheckResource>): { get: () => Promise<{ siteHash: string; siteId: string; }>; }; /** * Creates the ping resource methods * OpenAPI Path: /ping → ping.* * @description Ping endpoint for connectivity test */ export declare function createPingResource(executeRequest: ExecuteRequest): { /** * Simple connectivity test * @fullPath api.p21Core.ping.get * @service p21-core * @domain system-health * @dataMethod pingData.get * @discoverable true */ get: () => Promise<BaseResponse<unknown>>; }; /** * Creates the pingData resource methods (data-only versions) */ export declare function createPingDataResource(ping: ReturnType<typeof createPingResource>): { get: () => Promise<unknown>; }; export type HealthCheckResource = ReturnType<typeof createHealthCheckResource>; export type HealthCheckDataResource = ReturnType<typeof createHealthCheckDataResource>; export type PingResource = ReturnType<typeof createPingResource>; export type PingDataResource = ReturnType<typeof createPingDataResource>; export {}; //# sourceMappingURL=health-check.d.ts.map