Skip to content

Commit cf0904c

Browse files
committed
Implemented eventarc event publishing API (#1617)
1 parent d43a19d commit cf0904c

12 files changed

+2022
-454
lines changed

entrypoints.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,9 @@
5555
"firebase-admin/remote-config": {
5656
"typings": "./lib/remote-config/index.d.ts",
5757
"dist": "./lib/remote-config/index.js"
58+
},
59+
"firebase-admin/eventarc": {
60+
"typings": "./lib/eventarc/index.d.ts",
61+
"dist": "./lib/eventarc/index.js"
5862
}
5963
}

etc/firebase-admin.eventarc.api.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## API Report File for "firebase-admin.eventarc"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
/// <reference types="node" />
8+
9+
import { Agent } from 'http';
10+
11+
// @public
12+
export class Channel {
13+
readonly allowedEventTypes?: string[];
14+
get eventarc(): Eventarc;
15+
get name(): string;
16+
publish(events: CloudEvent | CloudEvent[]): Promise<void>;
17+
}
18+
19+
// @public
20+
export interface ChannelOptions {
21+
allowedEventTypes?: string[] | string | undefined;
22+
}
23+
24+
// @public
25+
export interface CloudEvent {
26+
[key: string]: any;
27+
data?: object | string;
28+
datacontenttype?: string;
29+
id?: string;
30+
source?: string;
31+
specversion?: CloudEventVersion;
32+
subject?: string;
33+
time?: string;
34+
type: string;
35+
}
36+
37+
// @public
38+
export type CloudEventVersion = '1.0';
39+
40+
// @public
41+
export class Eventarc {
42+
// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
43+
get app(): App;
44+
channel(name: string, options?: ChannelOptions): Channel;
45+
channel(options?: ChannelOptions): Channel;
46+
}
47+
48+
// @public
49+
export function getEventarc(app?: App): Eventarc;
50+
51+
```

0 commit comments

Comments
 (0)