-
Notifications
You must be signed in to change notification settings - Fork 507
/
Events.ts
41 lines (36 loc) · 1.12 KB
/
Events.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
37
38
39
40
41
import { EventTypeListInstance } from "./events/v1/eventType";
import { SchemaListInstance } from "./events/v1/schema";
import { SinkListInstance } from "./events/v1/sink";
import { SubscriptionListInstance } from "./events/v1/subscription";
import EventsBase from "./EventsBase";
class Events extends EventsBase {
/**
* @deprecated - Use v1.eventTypes instead
*/
get eventTypes(): EventTypeListInstance {
console.warn("eventTypes is deprecated. Use v1.eventTypes instead.");
return this.v1.eventTypes;
}
/**
* @deprecated - Use v1.schemas instead
*/
get schemas(): SchemaListInstance {
console.warn("schemas is deprecated. Use v1.schemas instead.");
return this.v1.schemas;
}
/**
* @deprecated - Use v1.sinks instead
*/
get sinks(): SinkListInstance {
console.warn("sinks is deprecated. Use v1.sinks instead.");
return this.v1.sinks;
}
/**
* @deprecated - Use v1.subscriptions instead
*/
get subscriptions(): SubscriptionListInstance {
console.warn("subscriptions is deprecated. Use v1.subscriptions instead.");
return this.v1.subscriptions;
}
}
export = Events;