@sourceloop/ctrl-plane-tenant-management-service
Version:
Tenant Management microservice for SaaS control plane
28 lines (23 loc) • 489 B
text/typescript
import {Model, model, property} from '@loopback/repository';
import {WebhookPayload} from '../../types';
()
export class WebhookDTO<T extends WebhookPayload['data']> extends Model {
({
type: 'string',
required: true,
})
initiatorId: string;
({
type: 'object',
required: true,
})
data: T;
({
type: 'number',
required: true,
})
type: number;
constructor(data?: Partial<WebhookDTO<T>>) {
super(data);
}
}