-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathindex.ts
36 lines (33 loc) · 1.42 KB
/
index.ts
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
import { OpenMeterConfig } from './clients/client.js'
import { EntitlementClient } from './clients/entitlement.js'
import { EventsClient } from './clients/event.js'
import { FeatureClient } from './clients/feature.js'
import { GrantClient } from './clients/grant.js'
import { MetersClient } from './clients/meter.js'
import { NotificationClient } from './clients/notifications.js'
import { PortalClient } from './clients/portal.js'
import { SubjectClient } from './clients/subject.js'
export { OpenMeterConfig, RequestOptions } from './clients/client.js'
export { Event, IngestedEvent, CloudEvent } from './clients/event.js'
export { Meter, MeterAggregation, WindowSize } from './clients/meter.js'
export * from './clients/notifications.js'
export class OpenMeter {
public events: EventsClient
public meters: MetersClient
public portal: PortalClient
public subjects: SubjectClient
public features: FeatureClient
public entitlements: EntitlementClient
public grants: GrantClient
public notification: NotificationClient
constructor(config: OpenMeterConfig) {
this.events = new EventsClient(config)
this.meters = new MetersClient(config)
this.portal = new PortalClient(config)
this.subjects = new SubjectClient(config)
this.features = new FeatureClient(config)
this.entitlements = new EntitlementClient(config)
this.grants = new GrantClient(config)
this.notification = new NotificationClient(config)
}
}