@hedhog/admin 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -0
- package/dist/{file/src/migrations/index.d.ts → migrations/migrate-01.d.ts} +1 -1
- package/dist/migrations/migrate-01.d.ts.map +1 -0
- package/dist/migrations/{1726795702341-migrate.js → migrate-01.js} +36 -36
- package/dist/migrations/migrate-01.js.map +1 -0
- package/dist/{setting/src/migrations/index.d.ts → migrations/migrate-02.d.ts} +1 -1
- package/dist/migrations/migrate-02.d.ts.map +1 -0
- package/dist/migrations/{1726795734665-migrate.js → migrate-02.js} +15 -15
- package/dist/migrations/migrate-02.js.map +1 -0
- package/dist/migrations/{1726795828359-migrate.d.ts → migrate-03.d.ts} +3 -2
- package/dist/migrations/migrate-03.d.ts.map +1 -0
- package/dist/migrations/migrate-03.js +101 -0
- package/dist/migrations/migrate-03.js.map +1 -0
- package/dist/migrations/migrate-04.d.ts +6 -0
- package/dist/migrations/migrate-04.d.ts.map +1 -0
- package/dist/migrations/{1726795828359-migrate.js → migrate-04.js} +4 -4
- package/dist/migrations/migrate-04.js.map +1 -0
- package/package.json +31 -29
- package/src/migrations/migrate-01.ts +107 -0
- package/src/migrations/migrate-02.ts +40 -0
- package/src/migrations/{1726795818403-migrate.ts → migrate-03.ts} +49 -49
- package/src/migrations/{1726795828359-migrate.ts → migrate-04.ts} +1 -1
- package/dist/file/src/dto/delete.dto.d.ts +0 -4
- package/dist/file/src/dto/delete.dto.d.ts.map +0 -1
- package/dist/file/src/dto/delete.dto.js +0 -23
- package/dist/file/src/dto/delete.dto.js.map +0 -1
- package/dist/file/src/file.module.d.ts +0 -3
- package/dist/file/src/file.module.d.ts.map +0 -1
- package/dist/file/src/file.module.js +0 -29
- package/dist/file/src/file.module.js.map +0 -1
- package/dist/file/src/file.service.d.ts +0 -12
- package/dist/file/src/file.service.d.ts.map +0 -1
- package/dist/file/src/file.service.js +0 -59
- package/dist/file/src/file.service.js.map +0 -1
- package/dist/file/src/migrations/index.d.ts.map +0 -1
- package/dist/file/src/migrations/index.js +0 -137
- package/dist/file/src/migrations/index.js.map +0 -1
- package/dist/mail/src/enums/mail-configuration-type.enum.d.ts +0 -6
- package/dist/mail/src/enums/mail-configuration-type.enum.d.ts.map +0 -1
- package/dist/mail/src/enums/mail-configuration-type.enum.js +0 -10
- package/dist/mail/src/enums/mail-configuration-type.enum.js.map +0 -1
- package/dist/mail/src/interfaces/index.d.ts +0 -3
- package/dist/mail/src/interfaces/index.d.ts.map +0 -1
- package/dist/mail/src/interfaces/index.js +0 -19
- package/dist/mail/src/interfaces/index.js.map +0 -1
- package/dist/mail/src/interfaces/mail-module-options.interface.d.ts +0 -32
- package/dist/mail/src/interfaces/mail-module-options.interface.d.ts.map +0 -1
- package/dist/mail/src/interfaces/mail-module-options.interface.js +0 -3
- package/dist/mail/src/interfaces/mail-module-options.interface.js.map +0 -1
- package/dist/mail/src/interfaces/mail-type.d.ts +0 -13
- package/dist/mail/src/interfaces/mail-type.d.ts.map +0 -1
- package/dist/mail/src/interfaces/mail-type.js +0 -3
- package/dist/mail/src/interfaces/mail-type.js.map +0 -1
- package/dist/mail/src/mail.consts.d.ts +0 -17
- package/dist/mail/src/mail.consts.d.ts.map +0 -1
- package/dist/mail/src/mail.consts.js +0 -5
- package/dist/mail/src/mail.consts.js.map +0 -1
- package/dist/mail/src/mail.module.d.ts +0 -8
- package/dist/mail/src/mail.module.d.ts.map +0 -1
- package/dist/mail/src/mail.module.js +0 -51
- package/dist/mail/src/mail.module.js.map +0 -1
- package/dist/mail/src/mail.service.d.ts +0 -14
- package/dist/mail/src/mail.service.d.ts.map +0 -1
- package/dist/mail/src/mail.service.js +0 -281
- package/dist/mail/src/mail.service.js.map +0 -1
- package/dist/mail/src/mail.service.spec.d.ts +0 -2
- package/dist/mail/src/mail.service.spec.d.ts.map +0 -1
- package/dist/mail/src/mail.service.spec.js +0 -17
- package/dist/mail/src/mail.service.spec.js.map +0 -1
- package/dist/migrations/1726795702341-migrate.d.ts +0 -6
- package/dist/migrations/1726795702341-migrate.d.ts.map +0 -1
- package/dist/migrations/1726795702341-migrate.js.map +0 -1
- package/dist/migrations/1726795734665-migrate.d.ts +0 -6
- package/dist/migrations/1726795734665-migrate.d.ts.map +0 -1
- package/dist/migrations/1726795734665-migrate.js.map +0 -1
- package/dist/migrations/1726795818403-migrate.d.ts +0 -7
- package/dist/migrations/1726795818403-migrate.d.ts.map +0 -1
- package/dist/migrations/1726795818403-migrate.js +0 -101
- package/dist/migrations/1726795818403-migrate.js.map +0 -1
- package/dist/migrations/1726795828359-migrate.d.ts.map +0 -1
- package/dist/migrations/1726795828359-migrate.js.map +0 -1
- package/dist/setting/src/dto/create.dto.d.ts +0 -4
- package/dist/setting/src/dto/create.dto.d.ts.map +0 -1
- package/dist/setting/src/dto/create.dto.js +0 -22
- package/dist/setting/src/dto/create.dto.js.map +0 -1
- package/dist/setting/src/dto/delete.dto.d.ts +0 -4
- package/dist/setting/src/dto/delete.dto.d.ts.map +0 -1
- package/dist/setting/src/dto/delete.dto.js +0 -23
- package/dist/setting/src/dto/delete.dto.js.map +0 -1
- package/dist/setting/src/dto/update.dto.d.ts +0 -4
- package/dist/setting/src/dto/update.dto.d.ts.map +0 -1
- package/dist/setting/src/dto/update.dto.js +0 -8
- package/dist/setting/src/dto/update.dto.js.map +0 -1
- package/dist/setting/src/migrations/index.d.ts.map +0 -1
- package/dist/setting/src/migrations/index.js +0 -67
- package/dist/setting/src/migrations/index.js.map +0 -1
- package/dist/setting/src/settings.controller.d.ts +0 -14
- package/dist/setting/src/settings.controller.d.ts.map +0 -1
- package/dist/setting/src/settings.controller.js +0 -94
- package/dist/setting/src/settings.controller.js.map +0 -1
- package/dist/setting/src/settings.module.d.ts +0 -3
- package/dist/setting/src/settings.module.d.ts.map +0 -1
- package/dist/setting/src/settings.module.js +0 -31
- package/dist/setting/src/settings.module.js.map +0 -1
- package/dist/setting/src/settings.service.d.ts +0 -19
- package/dist/setting/src/settings.service.d.ts.map +0 -1
- package/dist/setting/src/settings.service.js +0 -70
- package/dist/setting/src/settings.service.js.map +0 -1
- package/src/migrations/1726795702341-migrate.ts +0 -107
- package/src/migrations/1726795734665-migrate.ts +0 -40
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail-type.d.ts","sourceRoot":"","sources":["../../../../src/mail/src/interfaces/mail-type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail-type.js","sourceRoot":"","sources":["../../../../src/mail/src/interfaces/mail-type.ts"],"names":[],"mappings":""}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { MailType } from './interfaces/mail-type';
|
2
|
-
export type MailAttachment = {
|
3
|
-
filename?: string;
|
4
|
-
content?: Buffer;
|
5
|
-
contentType?: string;
|
6
|
-
};
|
7
|
-
export type Mail = {
|
8
|
-
attachments?: MailAttachment[];
|
9
|
-
} & MailType;
|
10
|
-
export type MailConfig = {
|
11
|
-
host?: string;
|
12
|
-
from?: string;
|
13
|
-
accessKeyId?: string;
|
14
|
-
secretAccessKey?: string;
|
15
|
-
};
|
16
|
-
export declare const MAIL_MODULE_OPTIONS = "MAIL_MODULE_OPTIONS";
|
17
|
-
//# sourceMappingURL=mail.consts.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.consts.d.ts","sourceRoot":"","sources":["../../../src/mail/src/mail.consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAChC,GAAG,QAAQ,CAAC;AAEb,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,wBAAwB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.consts.js","sourceRoot":"","sources":["../../../src/mail/src/mail.consts.ts"],"names":[],"mappings":";;;AAmBa,QAAA,mBAAmB,GAAG,qBAAqB,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { DynamicModule } from '@nestjs/common';
|
2
|
-
import { MailModuleAsyncOptions, MailModuleOptions } from './interfaces/mail-module-options.interface';
|
3
|
-
export declare class MailModule {
|
4
|
-
static forRoot(options: MailModuleOptions): DynamicModule;
|
5
|
-
static forRootAsync(options: MailModuleAsyncOptions): DynamicModule;
|
6
|
-
private static createAsyncOptionsProvider;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=mail.module.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.module.d.ts","sourceRoot":"","sources":["../../../src/mail/src/mail.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,4CAA4C,CAAC;AAIpD,qBAEa,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,aAAa;IAezD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa;IASnE,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAS1C"}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var MailModule_1;
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.MailModule = void 0;
|
11
|
-
const axios_1 = require("@nestjs/axios");
|
12
|
-
const common_1 = require("@nestjs/common");
|
13
|
-
const mail_consts_1 = require("./mail.consts");
|
14
|
-
const mail_service_1 = require("./mail.service");
|
15
|
-
let MailModule = MailModule_1 = class MailModule {
|
16
|
-
static forRoot(options) {
|
17
|
-
return {
|
18
|
-
module: MailModule_1,
|
19
|
-
imports: [axios_1.HttpModule],
|
20
|
-
providers: [
|
21
|
-
mail_service_1.MailService,
|
22
|
-
{
|
23
|
-
provide: mail_consts_1.MAIL_MODULE_OPTIONS,
|
24
|
-
useValue: options,
|
25
|
-
},
|
26
|
-
],
|
27
|
-
exports: [mail_service_1.MailService],
|
28
|
-
};
|
29
|
-
}
|
30
|
-
static forRootAsync(options) {
|
31
|
-
return {
|
32
|
-
module: MailModule_1,
|
33
|
-
imports: [...(options.imports || []), axios_1.HttpModule],
|
34
|
-
providers: [mail_service_1.MailService, this.createAsyncOptionsProvider(options)],
|
35
|
-
exports: [mail_service_1.MailService],
|
36
|
-
};
|
37
|
-
}
|
38
|
-
static createAsyncOptionsProvider(options) {
|
39
|
-
return {
|
40
|
-
provide: mail_consts_1.MAIL_MODULE_OPTIONS,
|
41
|
-
useFactory: options.useFactory,
|
42
|
-
inject: options.inject || [],
|
43
|
-
};
|
44
|
-
}
|
45
|
-
};
|
46
|
-
exports.MailModule = MailModule;
|
47
|
-
exports.MailModule = MailModule = MailModule_1 = __decorate([
|
48
|
-
(0, common_1.Global)(),
|
49
|
-
(0, common_1.Module)({})
|
50
|
-
], MailModule);
|
51
|
-
//# sourceMappingURL=mail.module.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.module.js","sourceRoot":"","sources":["../../../src/mail/src/mail.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAyE;AAKzE,+CAAoD;AACpD,iDAA6C;AAItC,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,OAA0B;QACvC,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,CAAC,kBAAU,CAAC;YACrB,SAAS,EAAE;gBACT,0BAAW;gBACX;oBACE,OAAO,EAAE,iCAAmB;oBAC5B,QAAQ,EAAE,OAAO;iBAClB;aACF;YACD,OAAO,EAAE,CAAC,0BAAW,CAAC;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAA+B;QACjD,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,kBAAU,CAAC;YACjD,SAAS,EAAE,CAAC,0BAAW,EAAE,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;YAClE,OAAO,EAAE,CAAC,0BAAW,CAAC;SACvB,CAAC;IACJ,CAAC;IAEO,MAAM,CAAC,0BAA0B,CACvC,OAA+B;QAE/B,OAAO;YACL,OAAO,EAAE,iCAAmB;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;SAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAlCY,gCAAU;qBAAV,UAAU;IAFtB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAkCtB"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { HttpService } from '@nestjs/axios';
|
2
|
-
import { MailModuleOptions } from './interfaces/mail-module-options.interface';
|
3
|
-
import { Mail } from './mail.consts';
|
4
|
-
export declare class MailService {
|
5
|
-
private readonly mailConfig;
|
6
|
-
private readonly httpService;
|
7
|
-
constructor(mailConfig: MailModuleOptions, httpService: HttpService);
|
8
|
-
send(mail: Mail): Promise<any>;
|
9
|
-
createRawEmail(mail: Mail): Promise<string>;
|
10
|
-
sendWithSMTP(mail: Mail): Promise<any>;
|
11
|
-
sendWithGmail(mail: Mail): Promise<import("axios").AxiosResponse<any, any>>;
|
12
|
-
sendWithSES(mail: Mail): Promise<import("aws-sdk/lib/request").PromiseResult<import("aws-sdk/clients/ses").SendRawEmailResponse, import("aws-sdk").AWSError>>;
|
13
|
-
}
|
14
|
-
//# sourceMappingURL=mail.service.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.service.d.ts","sourceRoot":"","sources":["../../../src/mail/src/mail.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAuB,MAAM,eAAe,CAAC;AAE1D,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAE3B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAFX,UAAU,EAAE,iBAAiB,EAE7B,WAAW,EAAE,WAAW;IAGrC,IAAI,CAAC,IAAI,EAAE,IAAI;IAaf,cAAc,CAAC,IAAI,EAAE,IAAI;IAyEzB,YAAY,CAAC,IAAI,EAAE,IAAI;IAqCvB,aAAa,CAAC,IAAI,EAAE,IAAI;IA0CxB,WAAW,CAAC,IAAI,EAAE,IAAI;CAyH7B"}
|
@@ -1,281 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
21
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
23
|
-
};
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
25
|
-
if (mod && mod.__esModule) return mod;
|
26
|
-
var result = {};
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
28
|
-
__setModuleDefault(result, mod);
|
29
|
-
return result;
|
30
|
-
};
|
31
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
32
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
33
|
-
};
|
34
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
35
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
36
|
-
};
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
-
exports.MailService = void 0;
|
39
|
-
const axios_1 = require("@nestjs/axios");
|
40
|
-
const common_1 = require("@nestjs/common");
|
41
|
-
const mimemessage = __importStar(require("mimemessage"));
|
42
|
-
const rxjs_1 = require("rxjs");
|
43
|
-
const mail_configuration_type_enum_1 = require("./enums/mail-configuration-type.enum");
|
44
|
-
const mail_consts_1 = require("./mail.consts");
|
45
|
-
let MailService = class MailService {
|
46
|
-
constructor(mailConfig, httpService) {
|
47
|
-
this.mailConfig = mailConfig;
|
48
|
-
this.httpService = httpService;
|
49
|
-
}
|
50
|
-
async send(mail) {
|
51
|
-
switch (this.mailConfig.type) {
|
52
|
-
case mail_configuration_type_enum_1.MailConfigurationTypeEnum.AWS:
|
53
|
-
return this.sendWithSES(mail);
|
54
|
-
case mail_configuration_type_enum_1.MailConfigurationTypeEnum.GMAIL:
|
55
|
-
return this.sendWithGmail(mail);
|
56
|
-
case mail_configuration_type_enum_1.MailConfigurationTypeEnum.SMTP:
|
57
|
-
return this.sendWithSMTP(mail);
|
58
|
-
}
|
59
|
-
}
|
60
|
-
async createRawEmail(mail) {
|
61
|
-
var _a, _b;
|
62
|
-
if (mail.attachments instanceof Array && ((_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.length)) {
|
63
|
-
const mailContent = mimemessage.factory({
|
64
|
-
contentType: 'multipart/mixed',
|
65
|
-
body: [],
|
66
|
-
});
|
67
|
-
mailContent.header('From', mail.from);
|
68
|
-
mailContent.header('To', mail.to);
|
69
|
-
mailContent.header('Subject', mail.subject);
|
70
|
-
const alternateEntity = mimemessage.factory({
|
71
|
-
contentType: 'multipart/alternate',
|
72
|
-
body: [],
|
73
|
-
});
|
74
|
-
const htmlEntity = mimemessage.factory({
|
75
|
-
contentType: 'text/html;charset=utf-8',
|
76
|
-
body: mail.body,
|
77
|
-
});
|
78
|
-
alternateEntity.body.push(htmlEntity);
|
79
|
-
mailContent.body.push(alternateEntity);
|
80
|
-
await Promise.all(((_b = mail.attachments) !== null && _b !== void 0 ? _b : []).map(async (attachment) => {
|
81
|
-
const attachmentEntity = mimemessage.factory({
|
82
|
-
contentType: attachment.contentType,
|
83
|
-
contentTransferEncoding: 'base64',
|
84
|
-
body: attachment.content
|
85
|
-
.toString('base64')
|
86
|
-
.replace(/([^\0]{76})/g, '$1\n'),
|
87
|
-
});
|
88
|
-
attachmentEntity.header('Content-Disposition', `attachment; filename="${attachment.filename}"`);
|
89
|
-
mailContent.body.push(attachmentEntity);
|
90
|
-
}));
|
91
|
-
const messageString = mailContent.toString();
|
92
|
-
const encodedMessage = Buffer.from(messageString)
|
93
|
-
.toString('base64')
|
94
|
-
.replace(/\+/g, '-')
|
95
|
-
.replace(/\//g, '_')
|
96
|
-
.replace(/=+$/, '');
|
97
|
-
return encodedMessage;
|
98
|
-
}
|
99
|
-
else {
|
100
|
-
const messageParts = [
|
101
|
-
`From: ${mail.from}`,
|
102
|
-
`To: ${mail.to instanceof Array ? mail.to.join(',') : mail.to}`,
|
103
|
-
`Subject: ${mail.subject}`,
|
104
|
-
'Content-Type: text/plain; charset="UTF-8"',
|
105
|
-
'',
|
106
|
-
mail.body,
|
107
|
-
];
|
108
|
-
const message = messageParts.join('\n');
|
109
|
-
const encodedMessage = Buffer.from(message)
|
110
|
-
.toString('base64')
|
111
|
-
.replace(/\+/g, '-')
|
112
|
-
.replace(/\//g, '_')
|
113
|
-
.replace(/=+$/, '');
|
114
|
-
return encodedMessage;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
async sendWithSMTP(mail) {
|
118
|
-
if (this.mailConfig.type !== 'SMTP') {
|
119
|
-
throw new Error('Invalid mail configuration type');
|
120
|
-
}
|
121
|
-
const { password: pass, username: user, host, port, secure = false, } = this.mailConfig;
|
122
|
-
const nodemailer = await Promise.resolve().then(() => __importStar(require('nodemailer')));
|
123
|
-
const transporter = nodemailer.createTransport({
|
124
|
-
host,
|
125
|
-
port,
|
126
|
-
secure,
|
127
|
-
auth: {
|
128
|
-
user,
|
129
|
-
pass,
|
130
|
-
},
|
131
|
-
});
|
132
|
-
return transporter.sendMail({
|
133
|
-
from: mail.from || process.env.SMTP_FROM || process.env.SMTP_USER,
|
134
|
-
to: mail.to,
|
135
|
-
subject: mail.subject,
|
136
|
-
html: mail.body,
|
137
|
-
cc: mail.cc,
|
138
|
-
bcc: mail.bcc,
|
139
|
-
replyTo: mail.replyTo,
|
140
|
-
priority: mail.priority,
|
141
|
-
});
|
142
|
-
}
|
143
|
-
async sendWithGmail(mail) {
|
144
|
-
if (this.mailConfig.type !== 'GMAIL') {
|
145
|
-
throw new Error('Invalid mail configuration type');
|
146
|
-
}
|
147
|
-
const { clientId, clientSecret, from, refreshToken } = this.mailConfig;
|
148
|
-
const redirectURI = 'https://developers.google.com/oauthplayground';
|
149
|
-
const { google } = await Promise.resolve().then(() => __importStar(require('googleapis')));
|
150
|
-
const oauth2Client = new google.auth.OAuth2(clientId, clientSecret, redirectURI);
|
151
|
-
oauth2Client.setCredentials({
|
152
|
-
refresh_token: refreshToken,
|
153
|
-
});
|
154
|
-
const { token } = await oauth2Client.getAccessToken();
|
155
|
-
const raw = await this.createRawEmail(Object.assign(Object.assign({}, mail), { from }));
|
156
|
-
const url = 'https://www.googleapis.com/gmail/v1/users/me/messages/send';
|
157
|
-
const requestBody = {
|
158
|
-
raw,
|
159
|
-
};
|
160
|
-
const headers = {
|
161
|
-
Authorization: `Bearer ${token}`,
|
162
|
-
'Content-Type': 'application/json',
|
163
|
-
};
|
164
|
-
const response = this.httpService.post(url, requestBody, { headers });
|
165
|
-
return (0, rxjs_1.firstValueFrom)(response);
|
166
|
-
}
|
167
|
-
async sendWithSES(mail) {
|
168
|
-
var _a;
|
169
|
-
if (this.mailConfig.type !== 'AWS') {
|
170
|
-
throw new Error('Invalid mail configuration type');
|
171
|
-
}
|
172
|
-
const { region, from, accessKeyId, secretAccessKey } = this.mailConfig;
|
173
|
-
const { SES } = await Promise.resolve().then(() => __importStar(require('aws-sdk')));
|
174
|
-
const ses = new SES({
|
175
|
-
apiVersion: '2010-12-01',
|
176
|
-
region,
|
177
|
-
credentials: {
|
178
|
-
accessKeyId,
|
179
|
-
secretAccessKey,
|
180
|
-
},
|
181
|
-
});
|
182
|
-
ses.config.update({
|
183
|
-
credentials: {
|
184
|
-
accessKeyId,
|
185
|
-
secretAccessKey,
|
186
|
-
},
|
187
|
-
});
|
188
|
-
if (typeof mail.to === 'string') {
|
189
|
-
mail.to = mail.to.split(';');
|
190
|
-
}
|
191
|
-
if (typeof mail.bcc === 'string') {
|
192
|
-
mail.bcc = mail.bcc.split(';');
|
193
|
-
}
|
194
|
-
else if (!mail.bcc) {
|
195
|
-
mail.bcc = [];
|
196
|
-
}
|
197
|
-
if (typeof mail.cc === 'string') {
|
198
|
-
mail.cc = mail.cc.split(';');
|
199
|
-
}
|
200
|
-
else if (!mail.cc) {
|
201
|
-
mail.cc = [];
|
202
|
-
}
|
203
|
-
if (typeof mail.replyTo === 'string') {
|
204
|
-
mail.replyTo = mail.replyTo.split(';');
|
205
|
-
}
|
206
|
-
else if (!mail.replyTo) {
|
207
|
-
mail.replyTo = [];
|
208
|
-
}
|
209
|
-
if (mail.attachments instanceof Array && mail.attachments.length > 0) {
|
210
|
-
const mailContent = mimemessage.factory({
|
211
|
-
contentType: 'multipart/mixed',
|
212
|
-
body: [],
|
213
|
-
});
|
214
|
-
mailContent.header('From', from);
|
215
|
-
mailContent.header('To', mail.to);
|
216
|
-
mailContent.header('Subject', mail.subject);
|
217
|
-
const alternateEntity = mimemessage.factory({
|
218
|
-
contentType: 'multipart/alternate',
|
219
|
-
body: [],
|
220
|
-
});
|
221
|
-
const htmlEntity = mimemessage.factory({
|
222
|
-
contentType: 'text/html;charset=utf-8',
|
223
|
-
body: mail.body,
|
224
|
-
});
|
225
|
-
alternateEntity.body.push(htmlEntity);
|
226
|
-
mailContent.body.push(alternateEntity);
|
227
|
-
await Promise.all(((_a = mail.attachments) !== null && _a !== void 0 ? _a : []).map((item) => {
|
228
|
-
const attachmentEntity = mimemessage.factory({
|
229
|
-
contentType: item.contentType,
|
230
|
-
contentTransferEncoding: 'base64',
|
231
|
-
body: item.content
|
232
|
-
.toString('base64')
|
233
|
-
.replace(/([^\0]{76})/g, '$1\n'),
|
234
|
-
});
|
235
|
-
attachmentEntity.header('Content-Disposition', `attachment ;filename="${item.filename}"`);
|
236
|
-
mailContent.body.push(attachmentEntity);
|
237
|
-
}));
|
238
|
-
return ses
|
239
|
-
.sendRawEmail({
|
240
|
-
RawMessage: { Data: mailContent.toString() },
|
241
|
-
})
|
242
|
-
.promise();
|
243
|
-
}
|
244
|
-
else {
|
245
|
-
const params = {
|
246
|
-
Destination: {
|
247
|
-
ToAddresses: mail.to,
|
248
|
-
BccAddresses: mail.bcc,
|
249
|
-
CcAddresses: mail.cc,
|
250
|
-
},
|
251
|
-
Message: {
|
252
|
-
Body: {
|
253
|
-
Html: {
|
254
|
-
Data: mail.body,
|
255
|
-
Charset: 'utf-8',
|
256
|
-
},
|
257
|
-
Text: {
|
258
|
-
Data: mail.body,
|
259
|
-
Charset: 'utf-8',
|
260
|
-
},
|
261
|
-
},
|
262
|
-
Subject: {
|
263
|
-
Data: mail.subject,
|
264
|
-
Charset: 'utf-8',
|
265
|
-
},
|
266
|
-
},
|
267
|
-
ReplyToAddresses: mail.replyTo,
|
268
|
-
Source: from,
|
269
|
-
};
|
270
|
-
return ses.sendEmail(params).promise();
|
271
|
-
}
|
272
|
-
}
|
273
|
-
};
|
274
|
-
exports.MailService = MailService;
|
275
|
-
exports.MailService = MailService = __decorate([
|
276
|
-
(0, common_1.Injectable)(),
|
277
|
-
__param(0, (0, common_1.Inject)(mail_consts_1.MAIL_MODULE_OPTIONS)),
|
278
|
-
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => axios_1.HttpService))),
|
279
|
-
__metadata("design:paramtypes", [Object, axios_1.HttpService])
|
280
|
-
], MailService);
|
281
|
-
//# sourceMappingURL=mail.service.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/mail/src/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAAgE;AAChE,yDAA2C;AAC3C,+BAAsC;AACtC,uFAAiF;AAEjF,+CAA0D;AAGnD,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAEmB,UAA6B,EAE7B,WAAwB;QAFxB,eAAU,GAAV,UAAU,CAAmB;QAE7B,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,IAAU;QACnB,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;YAC7B,KAAK,wDAAyB,CAAC,GAAG;gBAChC,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEhC,KAAK,wDAAyB,CAAC,KAAK;gBAClC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAElC,KAAK,wDAAyB,CAAC,IAAI;gBACjC,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAAU;;QAC7B,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AAC;QACf,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,GAAG;gBACb,WAAW,EAAE;oBACX,WAAW,EAAE,IAAI,CAAC,EAAE;oBACpB,YAAY,EAAE,IAAI,CAAC,GAAG;oBACtB,WAAW,EAAE,IAAI,CAAC,EAAE;iBACrB;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE;wBACJ,IAAI,EAAE;4BACJ,IAAI,EAAE,IAAI,CAAC,IAAI;4BACf,OAAO,EAAE,OAAO;yBACjB;wBACD,IAAI,EAAE;4BACJ,IAAI,EAAE,IAAI,CAAC,IAAI;4BACf,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,OAAO,EAAE;wBACP,IAAI,EAAE,IAAI,CAAC,OAAO;wBAClB,OAAO,EAAE,OAAO;qBACjB;iBACF;gBACD,gBAAgB,EAAE,IAAI,CAAC,OAAO;gBAC9B,MAAM,EAAE,IAAI;aACb,CAAC;YAEF,OAAO,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;QACzC,CAAC;IACH,CAAC;CACF,CAAA;AAtSY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,iCAAmB,CAAC,CAAA;IAE3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mBAAW,CAAC,CAAC,CAAA;6CACR,mBAAW;GALhC,WAAW,CAsSvB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.service.spec.d.ts","sourceRoot":"","sources":["../../../src/mail/src/mail.service.spec.ts"],"names":[],"mappings":""}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const testing_1 = require("@nestjs/testing");
|
4
|
-
const mail_service_1 = require("./mail.service");
|
5
|
-
describe('MailService', () => {
|
6
|
-
let service;
|
7
|
-
beforeEach(async () => {
|
8
|
-
const module = await testing_1.Test.createTestingModule({
|
9
|
-
providers: [mail_service_1.MailService],
|
10
|
-
}).compile();
|
11
|
-
service = module.get(mail_service_1.MailService);
|
12
|
-
});
|
13
|
-
it('should be defined', () => {
|
14
|
-
expect(service).toBeDefined();
|
15
|
-
});
|
16
|
-
});
|
17
|
-
//# sourceMappingURL=mail.service.spec.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mail.service.spec.js","sourceRoot":"","sources":["../../../src/mail/src/mail.service.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,iDAA6C;AAE7C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,IAAI,OAAoB,CAAC;IAEzB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE,CAAC,0BAAW,CAAC;SACzB,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,OAAO,GAAG,MAAM,CAAC,GAAG,CAAc,0BAAW,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class Migrate1726795702341 implements MigrationInterface {
|
3
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
4
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
5
|
-
}
|
6
|
-
//# sourceMappingURL=1726795702341-migrate.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1726795702341-migrate.d.ts","sourceRoot":"","sources":["../../src/migrations/1726795702341-migrate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAIjB,qBAAa,oBAAqB,YAAW,kBAAkB;IACvD,EAAE,CAAC,WAAW,EAAE,WAAW;IA4F3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAIpC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1726795702341-migrate.js","sourceRoot":"","sources":["../../src/migrations/1726795702341-migrate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAKiB;AACjB,yCAA0D;AAC1D,+CAAiC;AAEjC,MAAa,oBAAoB;IAC/B,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,OAAO;aACtB,kBAAkB,EAAE;aACpB,MAAM,EAAE;aACR,IAAI,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,CAAC;aAC9B,MAAM,CAAC;YACN;gBACE,IAAI,EAAE,OAAO;aACd;YACD;gBACE,IAAI,EAAE,aAAa;aACpB;SACF,CAAC;aACD,OAAO,EAAE,CAAC;QAEb,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;iBAChB;gBACD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 -1,6 +0,0 @@
|
|
1
|
-
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class Migrate1726795734665 implements MigrationInterface {
|
3
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
4
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
5
|
-
}
|
6
|
-
//# sourceMappingURL=1726795734665-migrate.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1726795734665-migrate.d.ts","sourceRoot":"","sources":["../../src/migrations/1726795734665-migrate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAS,MAAM,SAAS,CAAC;AAEjE,qBAAa,oBAAqB,YAAW,kBAAkB;IACvD,EAAE,CAAC,WAAW,EAAE,WAAW;IA+B3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAGpC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1726795734665-migrate.js","sourceRoot":"","sources":["../../src/migrations/1726795734665-migrate.ts"],"names":[],"mappings":";;;AAAA,yCAA0D;AAE1D,qCAAiE;AAEjE,MAAa,oBAAoB;IAC/B,KAAK,CAAC,EAAE,CAAC,WAAwB;QAC/B,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,IAAI;iBACjB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QACjC,MAAM,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;CACF;AAnCD,oDAmCC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class Migrate1726795818403 implements MigrationInterface {
|
3
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
4
|
-
private insertMenu;
|
5
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
6
|
-
}
|
7
|
-
//# sourceMappingURL=1726795818403-migrate.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1726795818403-migrate.d.ts","sourceRoot":"","sources":["../../src/migrations/1726795818403-migrate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB,qBAAa,oBAAqB,YAAW,kBAAkB;IAChD,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YA0H1C,UAAU;IAyBX,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAI3D"}
|
@@ -1,101 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Migrate1726795818403 = void 0;
|
4
|
-
const typeorm_1 = require("typeorm");
|
5
|
-
const utils_1 = require("@hedhog/utils");
|
6
|
-
class Migrate1726795818403 {
|
7
|
-
async up(queryRunner) {
|
8
|
-
await queryRunner.createTable(new typeorm_1.Table({
|
9
|
-
name: "menus",
|
10
|
-
columns: [
|
11
|
-
(0, utils_1.idColumn)(),
|
12
|
-
{
|
13
|
-
name: "name",
|
14
|
-
type: "varchar",
|
15
|
-
},
|
16
|
-
{
|
17
|
-
name: "url",
|
18
|
-
type: "varchar",
|
19
|
-
isNullable: true,
|
20
|
-
},
|
21
|
-
{
|
22
|
-
name: "order",
|
23
|
-
type: "int",
|
24
|
-
default: 0,
|
25
|
-
unsigned: true,
|
26
|
-
},
|
27
|
-
{
|
28
|
-
name: "menu_id",
|
29
|
-
type: "int",
|
30
|
-
isNullable: true,
|
31
|
-
unsigned: true,
|
32
|
-
},
|
33
|
-
{
|
34
|
-
name: "icon",
|
35
|
-
type: "varchar",
|
36
|
-
isNullable: true,
|
37
|
-
},
|
38
|
-
(0, utils_1.timestampColumn)(),
|
39
|
-
(0, utils_1.timestampColumn)("updated_at"),
|
40
|
-
],
|
41
|
-
}));
|
42
|
-
await queryRunner.createTable(new typeorm_1.Table({
|
43
|
-
name: "menu_screens",
|
44
|
-
columns: [
|
45
|
-
{
|
46
|
-
name: "menu_id",
|
47
|
-
type: "int",
|
48
|
-
isPrimary: true,
|
49
|
-
unsigned: true,
|
50
|
-
},
|
51
|
-
{
|
52
|
-
name: "screen_id",
|
53
|
-
type: "int",
|
54
|
-
isPrimary: true,
|
55
|
-
unsigned: true,
|
56
|
-
},
|
57
|
-
],
|
58
|
-
}));
|
59
|
-
await queryRunner.createForeignKey("menu_screens", new typeorm_1.TableForeignKey({
|
60
|
-
columnNames: ["menu_id"],
|
61
|
-
referencedColumnNames: ["id"],
|
62
|
-
referencedTableName: "menus",
|
63
|
-
onDelete: "CASCADE",
|
64
|
-
}));
|
65
|
-
await queryRunner.createForeignKey("menu_screens", new typeorm_1.TableForeignKey({
|
66
|
-
columnNames: ["screen_id"],
|
67
|
-
referencedColumnNames: ["id"],
|
68
|
-
referencedTableName: "screens",
|
69
|
-
onDelete: "CASCADE",
|
70
|
-
}));
|
71
|
-
//System Populating
|
72
|
-
await this.insertMenu(queryRunner, "Dashboard", "/", 0, null, "dashboard");
|
73
|
-
const managementId = await this.insertMenu(queryRunner, "Management", null, 1, null, "settings");
|
74
|
-
await this.insertMenu(queryRunner, "Users", "/management/users", 0, managementId, "users");
|
75
|
-
await this.insertMenu(queryRunner, "Roles", "/management/roles", 1, managementId, "circles");
|
76
|
-
await this.insertMenu(queryRunner, "Screens", "/management/screens", 2, managementId, "screem");
|
77
|
-
await this.insertMenu(queryRunner, "Menus", "/management/menus", 3, managementId, "menu");
|
78
|
-
}
|
79
|
-
async insertMenu(queryRunner, name, url, order, menuId, icon) {
|
80
|
-
const result = await queryRunner.manager
|
81
|
-
.createQueryBuilder()
|
82
|
-
.insert()
|
83
|
-
.into("menus")
|
84
|
-
.values({
|
85
|
-
name,
|
86
|
-
url,
|
87
|
-
order,
|
88
|
-
menu_id: menuId,
|
89
|
-
icon,
|
90
|
-
})
|
91
|
-
.returning("id")
|
92
|
-
.execute();
|
93
|
-
return result.raw[0].id;
|
94
|
-
}
|
95
|
-
async down(queryRunner) {
|
96
|
-
await queryRunner.dropTable("menu_screens");
|
97
|
-
await queryRunner.dropTable("menus");
|
98
|
-
}
|
99
|
-
}
|
100
|
-
exports.Migrate1726795818403 = Migrate1726795818403;
|
101
|
-
//# sourceMappingURL=1726795818403-migrate.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1726795818403-migrate.js","sourceRoot":"","sources":["../../src/migrations/1726795818403-migrate.ts"],"names":[],"mappings":";;;AAAA,qCAKiB;AACjB,yCAA0D;AAE1D,MAAa,oBAAoB;IACxB,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,KAAK;oBACX,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,IAAI;iBACjB;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,KAAK;oBACX,OAAO,EAAE,CAAC;oBACV,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI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ources":["../../src/migrations/1726795828359-migrate.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAIZ,MAAM,SAAS,CAAC;AAEjB,qBAAa,oBAAqB,YAAW,kBAAkB;IACvD,EAAE,CAAC,WAAW,EAAE,WAAW;IA0hB3B,IAAI,CAAC,WAAW,EAAE,WAAW;CAuBpC"}
|