UNPKG

@sourceloop/ctrl-plane-tenant-management-service

Version:

Tenant Management microservice for SaaS control plane

28 lines (23 loc) 489 B
import {Model, model, property} from '@loopback/repository'; import {WebhookPayload} from '../../types'; @model() export class WebhookDTO<T extends WebhookPayload['data']> extends Model { @property({ type: 'string', required: true, }) initiatorId: string; @property({ type: 'object', required: true, }) data: T; @property({ type: 'number', required: true, }) type: number; constructor(data?: Partial<WebhookDTO<T>>) { super(data); } }