All files / src/core/services index.ts

100% Statements 20/20
100% Branches 0/0
20% Functions 2/10
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40                                              28x 40x 28x 28x 28x 30x 28x 28x 28x 28x              
/**
 * Platform capabilities — one per Cloudflare binding.
 *
 * @remarks
 * Each capability wraps a binding accessor and exposes domain-free operations:
 * it takes and returns plain values rather than an `APIResponse`, knows nothing
 * about any schema or workflow, and answers `isAvailable(env)` so a caller can
 * degrade when an optional binding is not configured.
 *
 * These belong to this library's domain layer. An application's own business
 * logic lives in its `services/`, extends the `Service` base, and reaches the
 * platform only through the capabilities below.
 *
 * @example
 * ```ts
 * import { D1Service, KVService } from '@/core/services'
 * ```
 *
 * @module
 * @author Bayu Dwiyan Satria
 * @version 1.0.0
 * @since 1.0.0
 */
export { AIService } from '@/core/services/AIService'
export { AnalyticsService } from '@/core/services/AnalyticsService'
export { D1Service } from '@/core/services/D1Service'
export { DurableObjectService } from '@/core/services/DurableObjectService'
export { HyperdriveService } from '@/core/services/HyperdriveService'
export { KVService } from '@/core/services/KVService'
export { QueueService } from '@/core/services/QueueService'
export { R2Service } from '@/core/services/R2Service'
export { RateLimitService } from '@/core/services/RateLimitService'
export { VectorizeService } from '@/core/services/VectorizeService'
 
export type { D1Statement } from '@/types/d1/D1Statement'
export type { D1WriteResult } from '@/types/d1/D1WriteResult'
export type { RequestMetric } from '@bayudwiyansatria/core'
export type { StoredObject } from '@bayudwiyansatria/core'
export type { VectorMatch } from '@bayudwiyansatria/core'