@yourrentals/cloudevent-receiver-nestjs 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export declare const CLOUD_EVENT_HANDLER: unique symbol;
2
+ export declare const CLOUD_EVENT_RECEIVER_OPTIONS: unique symbol;
@@ -0,0 +1,12 @@
1
+ import { DiscoveryService } from '@golevelup/nestjs-discovery';
2
+ import { CloudEventReceiver } from '@message-bus/cloudevent-receiver-core';
3
+ import { CloudEventReceiverModuleOptions } from './cloud-event-receiver.types';
4
+ export declare const createController: (pathPrefix?: string) => {
5
+ new (options: CloudEventReceiverModuleOptions, discovery: DiscoveryService): {
6
+ receiver: CloudEventReceiver;
7
+ readonly options: CloudEventReceiverModuleOptions;
8
+ readonly discovery: DiscoveryService;
9
+ onModuleInit(): Promise<void>;
10
+ receiveMessage(request: any): Promise<void>;
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export declare const CloudEventHandler: (queueName: string) => MethodDecorator;
@@ -0,0 +1,5 @@
1
+ import { DynamicModule } from '@nestjs/common';
2
+ import { CloudEventReceiverModuleOptions } from './cloud-event-receiver.types';
3
+ export declare class CloudEventReceiverModule {
4
+ static forRoot(options: CloudEventReceiverModuleOptions): DynamicModule;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { CloudEventReceiverOptions } from '@message-bus/cloudevent-receiver-core';
2
+ export type CloudEventReceiverModuleOptions = {
3
+ pathPrefix?: string;
4
+ verifiers: CloudEventReceiverOptions['verifiers'];
5
+ };
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@yourrentals/cloudevent-receiver-nestjs",
3
+ "version": "0.1.4",
4
+ "dependencies": {
5
+ "@golevelup/nestjs-discovery": "^4.0.0"
6
+ },
7
+ "peerDependencies": {
8
+ "@nestjs/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
9
+ }
10
+ }