Skip to content

Instantly share code, notes, and snippets.

@drewdaemon
Last active February 8, 2021 16:09
Show Gist options
  • Save drewdaemon/9837652362c7cad2de6d03442868670f to your computer and use it in GitHub Desktop.
Save drewdaemon/9837652362c7cad2de6d03442868670f to your computer and use it in GitHub Desktop.

INotificationRequest

Comes off the queue.

interface INotificationRequest {
	templateId: string;
	templateContext: any;
	subject: string;
	message?: string;
	groupId?: string;
	users: string | string[]
}

INotificationParams

Accepted by SendService.sendNotification

interface INotificationParams {
	subject: string;
	message: string;
	groupId?: string;
	users: string | string[];
}

IAppConfig

App-wide configuration object. May need to change based on our architecture decisions.

interface IAppConfig {
	templateBucket: string;
	queueUrl: string;
	notificationKeyPair: {
		key: string;
		// probably resolved at startup with a call to KMS
		secret: string;
	};
	defaultPortalUrl: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment