Initial commit - Event Planner application

This commit is contained in:
mberlin
2026-03-18 14:55:56 -03:00
commit 86d779eb4d
7548 changed files with 1006324 additions and 0 deletions

8
dist/core/entities/base.entity.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
export declare abstract class BaseEntity {
id: string;
tenantId: string;
metadata?: Record<string, any>;
createdAt: Date;
updatedAt: Date;
}
//# sourceMappingURL=base.entity.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"base.entity.d.ts","sourceRoot":"","sources":["../../../src/core/entities/base.entity.ts"],"names":[],"mappings":"AAEA,8BAAsB,UAAU;IAC9B,EAAE,EAAE,MAAM,CAAY;IACtB,QAAQ,EAAG,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAc;IAC7B,SAAS,EAAE,IAAI,CAAc;CAC9B"}

12
dist/core/entities/base.entity.js vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseEntity = void 0;
const uuid_1 = require("uuid");
class BaseEntity {
constructor() {
this.id = (0, uuid_1.v4)();
this.createdAt = new Date();
this.updatedAt = new Date();
}
}
exports.BaseEntity = BaseEntity;

View File

@@ -0,0 +1,10 @@
import { EntitySchema } from '@mikro-orm/core';
import { BaseEntity } from './base.entity';
export declare class NotificationRule extends BaseEntity {
module: string;
event: string;
channels: Array<'email' | 'whatsapp' | 'sms' | 'custom'>;
conditions?: Record<string, any>;
}
export declare const NotificationRuleSchema: EntitySchema<NotificationRule, never, import("@mikro-orm/core").EntityCtor<NotificationRule>>;
//# sourceMappingURL=notification-rule.entity.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"notification-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/core/entities/notification-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,EAAG,MAAM,CAAC;IAEhB,KAAK,EAAG,MAAM,CAAC;IAEf,QAAQ,EAAG,KAAK,CAAC,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC;IAE1D,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB,+FAejC,CAAC"}

View File

@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotificationRuleSchema = exports.NotificationRule = void 0;
const core_1 = require("@mikro-orm/core");
const base_entity_1 = require("./base.entity");
class NotificationRule extends base_entity_1.BaseEntity {
}
exports.NotificationRule = NotificationRule;
exports.NotificationRuleSchema = new core_1.EntitySchema({
class: NotificationRule,
tableName: 'notification_rules',
properties: {
id: { primary: true, type: 'uuid', defaultRaw: 'uuid_generate_v4()' },
tenantId: { type: 'string' },
metadata: { type: 'json', nullable: true },
createdAt: { type: 'date', defaultRaw: 'now()' },
updatedAt: { type: 'date', defaultRaw: 'now()' },
module: { type: 'string' },
event: { type: 'string' },
channels: { type: 'json' },
conditions: { type: 'json', nullable: true },
},
});

13
dist/core/entities/token.entity.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
import { EntitySchema } from '@mikro-orm/core';
export declare class AuthToken {
id: string;
tenantId: string;
token: string;
name?: string;
expiresAt?: Date;
metadata?: Record<string, any>;
createdAt: Date;
updatedAt: Date;
}
export declare const AuthTokenSchema: EntitySchema<AuthToken, never, import("@mikro-orm/core").EntityCtor<AuthToken>>;
//# sourceMappingURL=token.entity.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"token.entity.d.ts","sourceRoot":"","sources":["../../../src/core/entities/token.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,SAAS;IACpB,EAAE,EAAG,MAAM,CAAC;IACZ,QAAQ,EAAG,MAAM,CAAC;IAClB,KAAK,EAAG,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,iFAwC1B,CAAC"}

48
dist/core/entities/token.entity.js vendored Normal file
View File

@@ -0,0 +1,48 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthTokenSchema = exports.AuthToken = void 0;
const core_1 = require("@mikro-orm/core");
class AuthToken {
}
exports.AuthToken = AuthToken;
exports.AuthTokenSchema = new core_1.EntitySchema({
class: AuthToken,
tableName: 'auth_tokens',
properties: {
id: {
primary: true,
type: 'uuid',
default: 'uuid_generate_v4()',
},
tenantId: {
type: 'string',
nullable: false,
},
token: {
type: 'string',
nullable: false,
},
name: {
type: 'string',
nullable: true,
},
expiresAt: {
type: 'date',
nullable: true,
},
metadata: {
type: 'json',
nullable: true,
},
createdAt: {
type: 'date',
nullable: false,
defaultRaw: 'now()',
},
updatedAt: {
type: 'date',
nullable: false,
defaultRaw: 'now()',
},
},
});