Skip to content

Commit

Permalink
Implemented eventarc event publishing API (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj committed Apr 14, 2022
1 parent d43a19d commit cf0904c
Show file tree
Hide file tree
Showing 12 changed files with 2,022 additions and 454 deletions.
4 changes: 4 additions & 0 deletions entrypoints.json
Expand Up @@ -55,5 +55,9 @@
"firebase-admin/remote-config": {
"typings": "./lib/remote-config/index.d.ts",
"dist": "./lib/remote-config/index.js"
},
"firebase-admin/eventarc": {
"typings": "./lib/eventarc/index.d.ts",
"dist": "./lib/eventarc/index.js"
}
}
51 changes: 51 additions & 0 deletions etc/firebase-admin.eventarc.api.md
@@ -0,0 +1,51 @@
## API Report File for "firebase-admin.eventarc"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

/// <reference types="node" />

import { Agent } from 'http';

// @public
export class Channel {
readonly allowedEventTypes?: string[];
get eventarc(): Eventarc;
get name(): string;
publish(events: CloudEvent | CloudEvent[]): Promise<void>;
}

// @public
export interface ChannelOptions {
allowedEventTypes?: string[] | string | undefined;
}

// @public
export interface CloudEvent {
[key: string]: any;
data?: object | string;
datacontenttype?: string;
id?: string;
source?: string;
specversion?: CloudEventVersion;
subject?: string;
time?: string;
type: string;
}

// @public
export type CloudEventVersion = '1.0';

// @public
export class Eventarc {
// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
get app(): App;
channel(name: string, options?: ChannelOptions): Channel;
channel(options?: ChannelOptions): Channel;
}

// @public
export function getEventarc(app?: App): Eventarc;

```

0 comments on commit cf0904c

Please sign in to comment.