Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Google CloudEvent Types #376

Merged
merged 1 commit into from Oct 29, 2021

Conversation

matthewrobertson
Copy link
Member

This commit adds the output of the experiment/generate_cloudevents pipeline to the nodejs FunctionsFrameworks. This adds type interfaces for all known Google CloudEvent payloads, but it does not make any changes to the FFs to consume them yet. Those changes will be made in a subsequent PR.

All the types added by this PR can be deleted once the npm packages produced by googleapis/google-cloudevents-nodejs is ready for production usage.

Copy link
Contributor

@grant grant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One large comment and some minor comments.

This is all experimental, so we have flexibility.

* {@link https://github.com/cloudevents/spec/blob/master/spec.md#context-attributes}
* @public
*/
export interface CloudEvent {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same. My plan is to replace that interface with this one in a subsequent PR. I duplicated it in this PR so that it will revert cleanly. At this point we can rm -rf src/cloudevent_types and nothing is broken.

src/cloudevent_types/cloud/audit/v1/LogEntryData.ts Outdated Show resolved Hide resolved
src/cloudevent_types/cloud/audit/v1/LogEntryData.ts Outdated Show resolved Hide resolved
This commit adds the output of the experiment/generate_cloudevents
pipeline to the FunctionsFrameworks. This adds type interfaces for all
known Google CloudEvent payloads, but it does not make any changes to
the FFs to consume them yet. Those changes will be made in a subsequent
PR.

All the types added by this PR can be deleted once the npm packages
produced by googleapis/google-cloudevents-nodejs is ready for
production usage.
@matthewrobertson matthewrobertson merged commit 292ade9 into master Oct 29, 2021
@matthewrobertson matthewrobertson deleted the add-cloudevent-interfaces branch December 7, 2021 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants