@hed-hog/core 0.0.319 → 0.0.322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/core.module.d.ts.map +1 -1
  2. package/dist/core.module.js +3 -0
  3. package/dist/core.module.js.map +1 -1
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/mail-profile/dto/create.dto.d.ts +23 -0
  9. package/dist/mail-profile/dto/create.dto.d.ts.map +1 -0
  10. package/dist/mail-profile/dto/create.dto.js +139 -0
  11. package/dist/mail-profile/dto/create.dto.js.map +1 -0
  12. package/dist/mail-profile/dto/update.dto.d.ts +6 -0
  13. package/dist/mail-profile/dto/update.dto.d.ts.map +1 -0
  14. package/dist/mail-profile/dto/update.dto.js +9 -0
  15. package/dist/mail-profile/dto/update.dto.js.map +1 -0
  16. package/dist/mail-profile/mail-profile.controller.d.ts +94 -0
  17. package/dist/mail-profile/mail-profile.controller.d.ts.map +1 -0
  18. package/dist/mail-profile/mail-profile.controller.js +95 -0
  19. package/dist/mail-profile/mail-profile.controller.js.map +1 -0
  20. package/dist/mail-profile/mail-profile.module.d.ts +3 -0
  21. package/dist/mail-profile/mail-profile.module.d.ts.map +1 -0
  22. package/dist/mail-profile/mail-profile.module.js +31 -0
  23. package/dist/mail-profile/mail-profile.module.js.map +1 -0
  24. package/dist/mail-profile/mail-profile.service.d.ts +109 -0
  25. package/dist/mail-profile/mail-profile.service.d.ts.map +1 -0
  26. package/dist/mail-profile/mail-profile.service.js +278 -0
  27. package/dist/mail-profile/mail-profile.service.js.map +1 -0
  28. package/dist/menu/menu.controller.d.ts +3 -3
  29. package/dist/menu/menu.service.d.ts +3 -3
  30. package/dist/user/user.controller.d.ts +15 -0
  31. package/dist/user/user.controller.d.ts.map +1 -1
  32. package/dist/user/user.controller.js +22 -0
  33. package/dist/user/user.controller.js.map +1 -1
  34. package/dist/user/user.service.d.ts +15 -0
  35. package/dist/user/user.service.d.ts.map +1 -1
  36. package/dist/user/user.service.js +99 -0
  37. package/dist/user/user.service.js.map +1 -1
  38. package/hedhog/data/menu.yaml +35 -3
  39. package/hedhog/data/route.yaml +64 -0
  40. package/hedhog/frontend/app/mail/page.tsx.ejs +5 -0
  41. package/hedhog/frontend/app/mail/profiles/page.tsx.ejs +828 -0
  42. package/hedhog/frontend/app/users/page.tsx.ejs +25 -1383
  43. package/hedhog/frontend/app/users/permissions.tsx.ejs +109 -55
  44. package/hedhog/frontend/app/users/user-access-sheet.tsx.ejs +304 -0
  45. package/hedhog/frontend/app/users/user-sheet.tsx.ejs +1385 -0
  46. package/hedhog/frontend/messages/en.json +91 -0
  47. package/hedhog/frontend/messages/pt.json +91 -0
  48. package/hedhog/table/mail_profile.yaml +75 -0
  49. package/package.json +4 -4
  50. package/src/core.module.ts +3 -0
  51. package/src/index.ts +2 -0
  52. package/src/mail-profile/dto/create.dto.ts +145 -0
  53. package/src/mail-profile/dto/update.dto.ts +4 -0
  54. package/src/mail-profile/mail-profile.controller.ts +56 -0
  55. package/src/mail-profile/mail-profile.module.ts +18 -0
  56. package/src/mail-profile/mail-profile.service.ts +308 -0
  57. package/src/user/user.controller.ts +13 -0
  58. package/src/user/user.service.ts +98 -5
@@ -1 +1 @@
1
- {"version":3,"file":"core.module.d.ts","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,kBAAkB,EAAU,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAsBlH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBA8Da,UAAW,YAAW,UAAU,EAAE,YAAY;IAGvD,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGjD,YAAY;IAKZ,SAAS,CAAC,QAAQ,EAAE,kBAAkB;CAKvC"}
1
+ {"version":3,"file":"core.module.d.ts","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,kBAAkB,EAAU,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAuBlH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAgEa,UAAW,YAAW,UAAU,EAAE,YAAY;IAGvD,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGjD,YAAY;IAKZ,SAAS,CAAC,QAAQ,EAAE,kBAAkB;CAKvC"}
@@ -30,6 +30,7 @@ const file_module_1 = require("./file/file.module");
30
30
  const install_module_1 = require("./install/install.module");
31
31
  const integration_module_1 = require("./integration/integration.module");
32
32
  const mail_sent_module_1 = require("./mail-sent/mail-sent.module");
33
+ const mail_profile_module_1 = require("./mail-profile/mail-profile.module");
33
34
  const mail_module_1 = require("./mail/mail.module");
34
35
  const menu_module_1 = require("./menu/menu.module");
35
36
  const locale_injection_middleware_1 = require("./middlewares/locale-injection.middleware");
@@ -85,6 +86,7 @@ exports.CoreModule = CoreModule = __decorate([
85
86
  (0, common_1.forwardRef)(() => system_module_1.SystemModule),
86
87
  (0, common_1.forwardRef)(() => setting_module_1.SettingModule),
87
88
  (0, common_1.forwardRef)(() => mail_module_1.MailModule),
89
+ (0, common_1.forwardRef)(() => mail_profile_module_1.MailProfileModule),
88
90
  (0, common_1.forwardRef)(() => mail_sent_module_1.MailSentModule),
89
91
  (0, common_1.forwardRef)(() => file_module_1.FileModule),
90
92
  (0, common_1.forwardRef)(() => task_module_1.TaskModule),
@@ -98,6 +100,7 @@ exports.CoreModule = CoreModule = __decorate([
98
100
  user_module_1.UserModule,
99
101
  auth_module_1.AuthModule,
100
102
  mail_module_1.MailModule,
103
+ mail_profile_module_1.MailProfileModule,
101
104
  route_module_1.RouteModule,
102
105
  role_module_1.RoleModule,
103
106
  menu_module_1.MenuModule,
@@ -1 +1 @@
1
- {"version":3,"file":"core.module.js","sour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U;YACV,wBAAU;YACV,wBAAU;YACV,0BAAW;YACX,wBAAU;YACV,wBAAU;YACV,4BAAY;YACZ,yBAAY;YACZ,8BAAa;YACb,wBAAU;YACV,8BAAa;YACb,oBAAQ;YACR,sCAAiB;YACjB,mFAAsC;YACtC,gEAA6B;YAC7B,mEAA8B;SAC/B;QACD,SAAS,EAAE;YACT,gBAAS;YACT,mFAAsC;YACtC,gEAA6B;YAC7B,mEAA8B;YAC9B;gBACE,OAAO,EAAE,sBAAe;gBACxB,UAAU,EAAE,CAAC,SAAoB,EAAE,aAA4B,EAAE,EAAE;oBACjE,OAAO,IAAI,oBAAc,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;gBACtD,CAAC;gBACD,MAAM,EAAE,CAAC,gBAAS,EAAE,0BAAa,CAAC;aACnC;SACF;KACF,CAAC;IAGG,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC,CAAC,CAAA;qCACR,gCAAc;GAHtC,UAAU,CAgBtB"}
1
+ {"version":3,"file":"core.module.js","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA8C;AAC9C,oDAAmD;AACnD,gDAAiE;AACjE,4DAA2D;AAC3D,oDAAkE;AAClE,yCAA2C;AAC3C,2CAAkH;AAClH,2CAA8C;AAC9C,uCAA0D;AAC1D,8CAA0C;AAC1C,oDAAgD;AAChD,wDAAoD;AACpD,mEAA+D;AAC/D,oDAAgD;AAChD,6DAAyD;AACzD,yEAAqE;AACrE,mEAA8D;AAC9D,4EAAuE;AACvE,oDAAgD;AAChD,oDAAgD;AAChD,2FAAsF;AACtF,uDAAmD;AACnD,6DAAyD;AACzD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,gEAA4D;AAC5D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,oDAAgD;AAChD,oDAAgD;AAChD,oGAA8F;AAC9F,wGAAiG;A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AE,0BAAa,CAAC;aACnC;SACF;KACF,CAAC;IAGG,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC,CAAC,CAAA;qCACR,gCAAc;GAHtC,UAAU,CAgBtB"}
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export * from './user/constants/user.constants';
9
9
  export * from './user/user.service';
10
10
  export * from './mail/mail.module';
11
11
  export * from './mail/mail.service';
12
+ export * from './mail-profile/mail-profile.module';
13
+ export * from './mail-profile/mail-profile.service';
12
14
  export * from './file/file.module';
13
15
  export * from './file/file.service';
14
16
  export * from './setting/setting.module';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAG9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,0DAA0D,CAAC;AACzE,cAAc,iDAAiD,CAAC;AAChE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC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8 @@ __exportStar(require("./user/constants/user.constants"), exports);
31
31
  __exportStar(require("./user/user.service"), exports);
32
32
  __exportStar(require("./mail/mail.module"), exports);
33
33
  __exportStar(require("./mail/mail.service"), exports);
34
+ __exportStar(require("./mail-profile/mail-profile.module"), exports);
35
+ __exportStar(require("./mail-profile/mail-profile.service"), exports);
34
36
  __exportStar(require("./file/file.module"), exports);
35
37
  __exportStar(require("./file/file.service"), exports);
36
38
  __exportStar(require("./setting/setting.module"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAE1C,iDAA+B;AAC/B,kDAAgC;AAEhC,qBAAqB;AACrB,mEAAiD;AACjD,gFAA8D;AAC9D,mFAAiE;AACjE,uEAAqD;AACrD,2FAAyE;AACzE,kFAAgE;AAChE,sFAAoE;AACpE,oFAAkE;AAClE,yEAAuD;AACvD,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,sDAAoC;AAEpC,aAAa;AACb,gFAA8D;AAC9D,kFAAgE;AAChE,0FAAwE;AAExE,YAAY;AACZ,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AACpC,qEAAmD;AACnD,sEAAoD;AAEpD,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAE1C,iDAA+B;AAC/B,kDAAgC;AAEhC,qBAAqB;AACrB,mEAAiD;AACjD,gFAA8D;AAC9D,mFAAiE;AACjE,uEAAqD;AACrD,2FAAyE;AACzE,kFAAgE;AAChE,sFAAoE;AACpE,oFAAkE;AAClE,yEAAuD;AACvD,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,sDAAoC;AAEpC,aAAa;AACb,gFAA8D;AAC9D,kFAAgE;AAChE,0FAAwE;AAExE,YAAY;AACZ,yDAAuC"}
@@ -0,0 +1,23 @@
1
+ declare const providerOptions: readonly ["SMTP", "GMAIL", "SES"];
2
+ export declare class CreateDTO {
3
+ slug: string;
4
+ name: string;
5
+ provider: (typeof providerOptions)[number];
6
+ from_name?: string;
7
+ from_email: string;
8
+ reply_to_name?: string;
9
+ reply_to_email?: string;
10
+ smtp_host?: string;
11
+ smtp_port?: number;
12
+ smtp_secure?: boolean;
13
+ smtp_username?: string;
14
+ smtp_password?: string;
15
+ gmail_client_id?: string;
16
+ gmail_client_secret?: string;
17
+ gmail_refresh_token?: string;
18
+ ses_access_key_id?: string;
19
+ ses_secret_access_key?: string;
20
+ ses_region?: string;
21
+ }
22
+ export {};
23
+ //# sourceMappingURL=create.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail-profile/dto/create.dto.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,eAAe,mCAAoC,CAAC;AAE1D,qBAAa,SAAS;IAIpB,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;IAQ3C,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,EAAE,MAAM,CAAC;IAQnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAQvB,cAAc,CAAC,EAAE,MAAM,CAAC;IAQxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAQnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,WAAW,CAAC,EAAE,OAAO,CAAC;IAQtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAQvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAQvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAQzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAQ7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAQ3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAQ/B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,139 @@
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 __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateDTO = void 0;
13
+ const api_locale_1 = require("@hed-hog/api-locale");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const providerOptions = ['SMTP', 'GMAIL', 'SES'];
17
+ class CreateDTO {
18
+ }
19
+ exports.CreateDTO = CreateDTO;
20
+ __decorate([
21
+ (0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
22
+ (0, class_validator_1.MaxLength)(127),
23
+ (0, class_transformer_1.Transform)(({ value }) => String(value !== null && value !== void 0 ? value : '').trim()),
24
+ __metadata("design:type", String)
25
+ ], CreateDTO.prototype, "slug", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
28
+ (0, class_validator_1.MaxLength)(127),
29
+ (0, class_transformer_1.Transform)(({ value }) => String(value !== null && value !== void 0 ? value : '').trim()),
30
+ __metadata("design:type", String)
31
+ ], CreateDTO.prototype, "name", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsIn)(providerOptions),
34
+ (0, class_transformer_1.Transform)(({ value }) => String(value !== null && value !== void 0 ? value : '').trim().toUpperCase()),
35
+ __metadata("design:type", Object)
36
+ ], CreateDTO.prototype, "provider", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.MaxLength)(127),
41
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
42
+ __metadata("design:type", String)
43
+ ], CreateDTO.prototype, "from_name", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsEmail)({}, { message: 'Invalid email address.' }),
46
+ (0, class_validator_1.MaxLength)(255),
47
+ (0, class_transformer_1.Transform)(({ value }) => String(value !== null && value !== void 0 ? value : '').trim()),
48
+ __metadata("design:type", String)
49
+ ], CreateDTO.prototype, "from_email", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsString)(),
53
+ (0, class_validator_1.MaxLength)(127),
54
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
55
+ __metadata("design:type", String)
56
+ ], CreateDTO.prototype, "reply_to_name", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsOptional)(),
59
+ (0, class_validator_1.IsEmail)({}, { message: 'Invalid email address.' }),
60
+ (0, class_validator_1.MaxLength)(255),
61
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
62
+ __metadata("design:type", String)
63
+ ], CreateDTO.prototype, "reply_to_email", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsOptional)(),
66
+ (0, class_validator_1.IsString)(),
67
+ (0, class_validator_1.MaxLength)(255),
68
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
69
+ __metadata("design:type", String)
70
+ ], CreateDTO.prototype, "smtp_host", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsOptional)(),
73
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : Number(value)),
74
+ (0, class_validator_1.IsInt)(),
75
+ (0, class_validator_1.Min)(1),
76
+ __metadata("design:type", Number)
77
+ ], CreateDTO.prototype, "smtp_port", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsOptional)(),
80
+ (0, class_transformer_1.Transform)(({ value }) => value === true || value === 'true' || value === 1 || value === '1'),
81
+ (0, class_validator_1.IsBoolean)(),
82
+ __metadata("design:type", Boolean)
83
+ ], CreateDTO.prototype, "smtp_secure", void 0);
84
+ __decorate([
85
+ (0, class_validator_1.IsOptional)(),
86
+ (0, class_validator_1.IsString)(),
87
+ (0, class_validator_1.MaxLength)(255),
88
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
89
+ __metadata("design:type", String)
90
+ ], CreateDTO.prototype, "smtp_username", void 0);
91
+ __decorate([
92
+ (0, class_validator_1.IsOptional)(),
93
+ (0, class_validator_1.IsString)(),
94
+ (0, class_validator_1.MaxLength)(255),
95
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value)),
96
+ __metadata("design:type", String)
97
+ ], CreateDTO.prototype, "smtp_password", void 0);
98
+ __decorate([
99
+ (0, class_validator_1.IsOptional)(),
100
+ (0, class_validator_1.IsString)(),
101
+ (0, class_validator_1.MaxLength)(255),
102
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
103
+ __metadata("design:type", String)
104
+ ], CreateDTO.prototype, "gmail_client_id", void 0);
105
+ __decorate([
106
+ (0, class_validator_1.IsOptional)(),
107
+ (0, class_validator_1.IsString)(),
108
+ (0, class_validator_1.MaxLength)(255),
109
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value)),
110
+ __metadata("design:type", String)
111
+ ], CreateDTO.prototype, "gmail_client_secret", void 0);
112
+ __decorate([
113
+ (0, class_validator_1.IsOptional)(),
114
+ (0, class_validator_1.IsString)(),
115
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value)),
116
+ __metadata("design:type", String)
117
+ ], CreateDTO.prototype, "gmail_refresh_token", void 0);
118
+ __decorate([
119
+ (0, class_validator_1.IsOptional)(),
120
+ (0, class_validator_1.IsString)(),
121
+ (0, class_validator_1.MaxLength)(255),
122
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
123
+ __metadata("design:type", String)
124
+ ], CreateDTO.prototype, "ses_access_key_id", void 0);
125
+ __decorate([
126
+ (0, class_validator_1.IsOptional)(),
127
+ (0, class_validator_1.IsString)(),
128
+ (0, class_validator_1.MaxLength)(255),
129
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value)),
130
+ __metadata("design:type", String)
131
+ ], CreateDTO.prototype, "ses_secret_access_key", void 0);
132
+ __decorate([
133
+ (0, class_validator_1.IsOptional)(),
134
+ (0, class_validator_1.IsString)(),
135
+ (0, class_validator_1.MaxLength)(127),
136
+ (0, class_transformer_1.Transform)(({ value }) => value === undefined || value === null || value === '' ? undefined : String(value).trim()),
137
+ __metadata("design:type", String)
138
+ ], CreateDTO.prototype, "ses_region", void 0);
139
+ //# sourceMappingURL=create.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail-profile/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAA8C;AAC9C,qDASyB;AAEzB,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAE1D,MAAa,SAAS;CAiIrB;AAjID,8BAiIC;AA7HC;IAHC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;;uCACxC;AAKb;IAHC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;;uCACxC;AAIb;IAFC,IAAA,sBAAI,EAAC,eAAe,CAAC;IACrB,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,E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AAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;;sDAC4B;AAQ7B;IANC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CACzF;;oDAC0B;AAQ3B;IANC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;;wDAC8B;AAQ/B;IANC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CACzF;;6CACmB"}
@@ -0,0 +1,6 @@
1
+ import { CreateDTO } from './create.dto';
2
+ declare const UpdateDTO_base: import("@nestjs/mapped-types").MappedType<Partial<CreateDTO>>;
3
+ export declare class UpdateDTO extends UpdateDTO_base {
4
+ }
5
+ export {};
6
+ //# sourceMappingURL=update.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.dto.d.ts","sourceRoot":"","sources":["../../../src/mail-profile/dto/update.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;AAEzC,qBAAa,SAAU,SAAQ,cAAsB;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDTO = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_dto_1 = require("./create.dto");
6
+ class UpdateDTO extends (0, mapped_types_1.PartialType)(create_dto_1.CreateDTO) {
7
+ }
8
+ exports.UpdateDTO = UpdateDTO;
9
+ //# sourceMappingURL=update.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../src/mail-profile/dto/update.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,6CAAyC;AAEzC,MAAa,SAAU,SAAQ,IAAA,0BAAW,EAAC,sBAAS,CAAC;CAAG;AAAxD,8BAAwD"}
@@ -0,0 +1,94 @@
1
+ import { DeleteDTO } from '@hed-hog/api';
2
+ import { CreateDTO } from './dto/create.dto';
3
+ import { UpdateDTO } from './dto/update.dto';
4
+ import { MailProfileService } from './mail-profile.service';
5
+ export declare class MailProfileController {
6
+ private readonly mailProfileService;
7
+ constructor(mailProfileService: MailProfileService);
8
+ list(paginationParams: any): Promise<{
9
+ total: any;
10
+ lastPage: number;
11
+ page: number;
12
+ pageSize: number;
13
+ prev: number;
14
+ next: number;
15
+ data: any[];
16
+ }>;
17
+ get(id: number): Promise<{
18
+ name: string;
19
+ id: number;
20
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
21
+ created_at: Date;
22
+ updated_at: Date;
23
+ slug: string;
24
+ from_name: string | null;
25
+ from_email: string;
26
+ reply_to_name: string | null;
27
+ reply_to_email: string | null;
28
+ smtp_host: string | null;
29
+ smtp_port: number | null;
30
+ smtp_secure: boolean;
31
+ smtp_username: string | null;
32
+ smtp_password: string | null;
33
+ gmail_client_id: string | null;
34
+ gmail_client_secret: string | null;
35
+ gmail_refresh_token: string | null;
36
+ ses_access_key_id: string | null;
37
+ ses_secret_access_key: string | null;
38
+ ses_region: string | null;
39
+ }>;
40
+ create(data: CreateDTO): Promise<{
41
+ name: string;
42
+ id: number;
43
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
44
+ created_at: Date;
45
+ updated_at: Date;
46
+ slug: string;
47
+ from_name: string | null;
48
+ from_email: string;
49
+ reply_to_name: string | null;
50
+ reply_to_email: string | null;
51
+ smtp_host: string | null;
52
+ smtp_port: number | null;
53
+ smtp_secure: boolean;
54
+ smtp_username: string | null;
55
+ smtp_password: string | null;
56
+ gmail_client_id: string | null;
57
+ gmail_client_secret: string | null;
58
+ gmail_refresh_token: string | null;
59
+ ses_access_key_id: string | null;
60
+ ses_secret_access_key: string | null;
61
+ ses_region: string | null;
62
+ }>;
63
+ test(data: CreateDTO): Promise<{
64
+ success: boolean;
65
+ destination: string;
66
+ }>;
67
+ update(id: number, data: UpdateDTO): Promise<{
68
+ name: string;
69
+ id: number;
70
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
71
+ created_at: Date;
72
+ updated_at: Date;
73
+ slug: string;
74
+ from_name: string | null;
75
+ from_email: string;
76
+ reply_to_name: string | null;
77
+ reply_to_email: string | null;
78
+ smtp_host: string | null;
79
+ smtp_port: number | null;
80
+ smtp_secure: boolean;
81
+ smtp_username: string | null;
82
+ smtp_password: string | null;
83
+ gmail_client_id: string | null;
84
+ gmail_client_secret: string | null;
85
+ gmail_refresh_token: string | null;
86
+ ses_access_key_id: string | null;
87
+ ses_secret_access_key: string | null;
88
+ ses_region: string | null;
89
+ }>;
90
+ delete(data: DeleteDTO): Promise<{
91
+ count: number;
92
+ }>;
93
+ }
94
+ //# sourceMappingURL=mail-profile.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-profile.controller.d.ts","sourceRoot":"","sources":["../../src/mail-profile/mail-profile.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAc/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBAEa,qBAAqB;IAG9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,kBAAkB;IAInD,IAAI,CAAe,gBAAgB,KAAA;;;;;;;;;IAKnC,GAAG,CAA4B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;IAKzC,MAAM,CAAS,IAAI,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;IAK9B,IAAI,CAAS,IAAI,EAAE,SAAS;;;;IAK5B,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;IAKrE,MAAM,CAAS,IAAI,EAAE,SAAS;;;CAGrC"}
@@ -0,0 +1,95 @@
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 __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MailProfileController = void 0;
16
+ const api_1 = require("@hed-hog/api");
17
+ const api_pagination_1 = require("@hed-hog/api-pagination");
18
+ const common_1 = require("@nestjs/common");
19
+ const create_dto_1 = require("./dto/create.dto");
20
+ const update_dto_1 = require("./dto/update.dto");
21
+ const mail_profile_service_1 = require("./mail-profile.service");
22
+ let MailProfileController = class MailProfileController {
23
+ constructor(mailProfileService) {
24
+ this.mailProfileService = mailProfileService;
25
+ }
26
+ async list(paginationParams) {
27
+ return this.mailProfileService.list(paginationParams);
28
+ }
29
+ async get(id) {
30
+ return this.mailProfileService.get(id);
31
+ }
32
+ async create(data) {
33
+ return this.mailProfileService.create(data);
34
+ }
35
+ async test(data) {
36
+ return this.mailProfileService.test(data);
37
+ }
38
+ async update(id, data) {
39
+ return this.mailProfileService.update({ id, data });
40
+ }
41
+ async delete(data) {
42
+ return this.mailProfileService.delete(data);
43
+ }
44
+ };
45
+ exports.MailProfileController = MailProfileController;
46
+ __decorate([
47
+ (0, common_1.Get)(),
48
+ __param(0, (0, api_pagination_1.Pagination)()),
49
+ __metadata("design:type", Function),
50
+ __metadata("design:paramtypes", [Object]),
51
+ __metadata("design:returntype", Promise)
52
+ ], MailProfileController.prototype, "list", null);
53
+ __decorate([
54
+ (0, common_1.Get)(':id'),
55
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
56
+ __metadata("design:type", Function),
57
+ __metadata("design:paramtypes", [Number]),
58
+ __metadata("design:returntype", Promise)
59
+ ], MailProfileController.prototype, "get", null);
60
+ __decorate([
61
+ (0, common_1.Post)(),
62
+ __param(0, (0, common_1.Body)()),
63
+ __metadata("design:type", Function),
64
+ __metadata("design:paramtypes", [create_dto_1.CreateDTO]),
65
+ __metadata("design:returntype", Promise)
66
+ ], MailProfileController.prototype, "create", null);
67
+ __decorate([
68
+ (0, common_1.Post)('test'),
69
+ __param(0, (0, common_1.Body)()),
70
+ __metadata("design:type", Function),
71
+ __metadata("design:paramtypes", [create_dto_1.CreateDTO]),
72
+ __metadata("design:returntype", Promise)
73
+ ], MailProfileController.prototype, "test", null);
74
+ __decorate([
75
+ (0, common_1.Patch)(':id'),
76
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
77
+ __param(1, (0, common_1.Body)()),
78
+ __metadata("design:type", Function),
79
+ __metadata("design:paramtypes", [Number, update_dto_1.UpdateDTO]),
80
+ __metadata("design:returntype", Promise)
81
+ ], MailProfileController.prototype, "update", null);
82
+ __decorate([
83
+ (0, common_1.Delete)(),
84
+ __param(0, (0, common_1.Body)()),
85
+ __metadata("design:type", Function),
86
+ __metadata("design:paramtypes", [api_1.DeleteDTO]),
87
+ __metadata("design:returntype", Promise)
88
+ ], MailProfileController.prototype, "delete", null);
89
+ exports.MailProfileController = MailProfileController = __decorate([
90
+ (0, api_1.Role)(),
91
+ (0, common_1.Controller)('mail-profile'),
92
+ __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => mail_profile_service_1.MailProfileService))),
93
+ __metadata("design:paramtypes", [mail_profile_service_1.MailProfileService])
94
+ ], MailProfileController);
95
+ //# sourceMappingURL=mail-profile.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-profile.controller.js","sourceRoot":"","sources":["../../src/mail-profile/mail-profile.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA+C;AAC/C,4DAAqD;AACrD,2CAWwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,iEAA4D;AAIrD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAEmB,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB;QACvC,OAAO,IAAI,CAAC,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AAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;mDAE1E;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,eAAS;;mDAEnC;gCAlCU,qBAAqB;IAFjC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,cAAc,CAAC;IAGtB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC,CAAC,CAAA;qCACR,yCAAkB;GAH9C,qBAAqB,CAmCjC"}
@@ -0,0 +1,3 @@
1
+ export declare class MailProfileModule {
2
+ }
3
+ //# sourceMappingURL=mail-profile.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-profile.module.d.ts","sourceRoot":"","sources":["../../src/mail-profile/mail-profile.module.ts"],"names":[],"mappings":"AAOA,qBAUa,iBAAiB;CAAG"}
@@ -0,0 +1,31 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.MailProfileModule = void 0;
10
+ const api_pagination_1 = require("@hed-hog/api-pagination");
11
+ const api_prisma_1 = require("@hed-hog/api-prisma");
12
+ const common_1 = require("@nestjs/common");
13
+ const mail_module_1 = require("../mail/mail.module");
14
+ const mail_profile_controller_1 = require("./mail-profile.controller");
15
+ const mail_profile_service_1 = require("./mail-profile.service");
16
+ let MailProfileModule = class MailProfileModule {
17
+ };
18
+ exports.MailProfileModule = MailProfileModule;
19
+ exports.MailProfileModule = MailProfileModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [
22
+ (0, common_1.forwardRef)(() => api_prisma_1.PrismaModule),
23
+ (0, common_1.forwardRef)(() => api_pagination_1.PaginationModule),
24
+ (0, common_1.forwardRef)(() => mail_module_1.MailModule),
25
+ ],
26
+ controllers: [mail_profile_controller_1.MailProfileController],
27
+ providers: [mail_profile_service_1.MailProfileService],
28
+ exports: [mail_profile_service_1.MailProfileService],
29
+ })
30
+ ], MailProfileModule);
31
+ //# sourceMappingURL=mail-profile.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-profile.module.js","sourceRoot":"","sources":["../../src/mail-profile/mail-profile.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,4DAA2D;AAC3D,oDAAmD;AACnD,2CAAoD;AACpD,qDAAiD;AACjD,uEAAkE;AAClE,iEAA4D;AAYrD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAV7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;SAC7B;QACD,WAAW,EAAE,CAAC,+CAAqB,CAAC;QACpC,SAAS,EAAE,CAAC,yCAAkB,CAAC;QAC/B,OAAO,EAAE,CAAC,yCAAkB,CAAC;KAC9B,CAAC;GACW,iBAAiB,CAAG"}
@@ -0,0 +1,109 @@
1
+ import { DeleteDTO } from '@hed-hog/api';
2
+ import { MailService as MailMainService } from '@hed-hog/api-mail';
3
+ import { PaginationDTO, PaginationService } from '@hed-hog/api-pagination';
4
+ import { PrismaService } from '@hed-hog/api-prisma';
5
+ import { MailService } from '../mail/mail.service';
6
+ import { CreateDTO } from './dto/create.dto';
7
+ import { UpdateDTO } from './dto/update.dto';
8
+ export declare class MailProfileService {
9
+ private readonly prismaService;
10
+ private readonly paginationService;
11
+ private readonly mailMainService;
12
+ private readonly mailService;
13
+ constructor(prismaService: PrismaService, paginationService: PaginationService, mailMainService: MailMainService, mailService: MailService);
14
+ list(paginationParams: PaginationDTO): Promise<{
15
+ total: any;
16
+ lastPage: number;
17
+ page: number;
18
+ pageSize: number;
19
+ prev: number;
20
+ next: number;
21
+ data: any[];
22
+ }>;
23
+ get(id: number): Promise<{
24
+ name: string;
25
+ id: number;
26
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
27
+ created_at: Date;
28
+ updated_at: Date;
29
+ slug: string;
30
+ from_name: string | null;
31
+ from_email: string;
32
+ reply_to_name: string | null;
33
+ reply_to_email: string | null;
34
+ smtp_host: string | null;
35
+ smtp_port: number | null;
36
+ smtp_secure: boolean;
37
+ smtp_username: string | null;
38
+ smtp_password: string | null;
39
+ gmail_client_id: string | null;
40
+ gmail_client_secret: string | null;
41
+ gmail_refresh_token: string | null;
42
+ ses_access_key_id: string | null;
43
+ ses_secret_access_key: string | null;
44
+ ses_region: string | null;
45
+ }>;
46
+ create(data: CreateDTO): Promise<{
47
+ name: string;
48
+ id: number;
49
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
50
+ created_at: Date;
51
+ updated_at: Date;
52
+ slug: string;
53
+ from_name: string | null;
54
+ from_email: string;
55
+ reply_to_name: string | null;
56
+ reply_to_email: string | null;
57
+ smtp_host: string | null;
58
+ smtp_port: number | null;
59
+ smtp_secure: boolean;
60
+ smtp_username: string | null;
61
+ smtp_password: string | null;
62
+ gmail_client_id: string | null;
63
+ gmail_client_secret: string | null;
64
+ gmail_refresh_token: string | null;
65
+ ses_access_key_id: string | null;
66
+ ses_secret_access_key: string | null;
67
+ ses_region: string | null;
68
+ }>;
69
+ update({ id, data }: {
70
+ id: number;
71
+ data: UpdateDTO;
72
+ }): Promise<{
73
+ name: string;
74
+ id: number;
75
+ provider: import("@prisma/client").$Enums.mail_profile_provider_e62e6be632_enum;
76
+ created_at: Date;
77
+ updated_at: Date;
78
+ slug: string;
79
+ from_name: string | null;
80
+ from_email: string;
81
+ reply_to_name: string | null;
82
+ reply_to_email: string | null;
83
+ smtp_host: string | null;
84
+ smtp_port: number | null;
85
+ smtp_secure: boolean;
86
+ smtp_username: string | null;
87
+ smtp_password: string | null;
88
+ gmail_client_id: string | null;
89
+ gmail_client_secret: string | null;
90
+ gmail_refresh_token: string | null;
91
+ ses_access_key_id: string | null;
92
+ ses_secret_access_key: string | null;
93
+ ses_region: string | null;
94
+ }>;
95
+ delete({ ids }: DeleteDTO): Promise<{
96
+ count: number;
97
+ }>;
98
+ test(data: CreateDTO): Promise<{
99
+ success: boolean;
100
+ destination: string;
101
+ }>;
102
+ private ensureSlugIsAvailable;
103
+ private validateProviderFields;
104
+ private normalizeData;
105
+ private buildMailConfig;
106
+ private normalizeString;
107
+ private normalizeNullableString;
108
+ }
109
+ //# sourceMappingURL=mail-profile.service.d.ts.map