@hed-hog/core 0.0.354 → 0.0.356

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 (167) hide show
  1. package/dist/ai/ai.service.d.ts +3 -12
  2. package/dist/ai/ai.service.d.ts.map +1 -1
  3. package/dist/ai/ai.service.js +34 -125
  4. package/dist/ai/ai.service.js.map +1 -1
  5. package/dist/core.module.d.ts.map +1 -1
  6. package/dist/core.module.js +3 -3
  7. package/dist/core.module.js.map +1 -1
  8. package/dist/file/file.service.d.ts +1 -1
  9. package/dist/file/file.service.d.ts.map +1 -1
  10. package/dist/file/file.service.js +50 -64
  11. package/dist/file/file.service.js.map +1 -1
  12. package/dist/file/provider/provider.enum.d.ts +2 -1
  13. package/dist/file/provider/provider.enum.d.ts.map +1 -1
  14. package/dist/file/provider/provider.enum.js +1 -0
  15. package/dist/file/provider/provider.enum.js.map +1 -1
  16. package/dist/file/provider/provider.factory.d.ts.map +1 -1
  17. package/dist/file/provider/provider.factory.js +3 -0
  18. package/dist/file/provider/provider.factory.js.map +1 -1
  19. package/dist/file/provider/spaces.provider.d.ts +27 -0
  20. package/dist/file/provider/spaces.provider.d.ts.map +1 -0
  21. package/dist/file/provider/spaces.provider.js +218 -0
  22. package/dist/file/provider/spaces.provider.js.map +1 -0
  23. package/dist/index.d.ts +4 -3
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +4 -3
  26. package/dist/index.js.map +1 -1
  27. package/dist/integration-profile/dto/create.dto.d.ts +9 -0
  28. package/dist/integration-profile/dto/create.dto.d.ts.map +1 -0
  29. package/dist/integration-profile/dto/create.dto.js +54 -0
  30. package/dist/integration-profile/dto/create.dto.js.map +1 -0
  31. package/dist/integration-profile/dto/export.dto.d.ts +5 -0
  32. package/dist/integration-profile/dto/export.dto.d.ts.map +1 -0
  33. package/dist/integration-profile/dto/export.dto.js +29 -0
  34. package/dist/integration-profile/dto/export.dto.js.map +1 -0
  35. package/dist/integration-profile/dto/import-confirm.dto.d.ts +17 -0
  36. package/dist/integration-profile/dto/import-confirm.dto.d.ts.map +1 -0
  37. package/dist/integration-profile/dto/import-confirm.dto.js +77 -0
  38. package/dist/integration-profile/dto/import-confirm.dto.js.map +1 -0
  39. package/dist/integration-profile/dto/update.dto.d.ts +6 -0
  40. package/dist/integration-profile/dto/update.dto.d.ts.map +1 -0
  41. package/dist/integration-profile/dto/update.dto.js +9 -0
  42. package/dist/integration-profile/dto/update.dto.js.map +1 -0
  43. package/dist/integration-profile/integration-profile.controller.d.ts +142 -0
  44. package/dist/integration-profile/integration-profile.controller.d.ts.map +1 -0
  45. package/dist/integration-profile/integration-profile.controller.js +165 -0
  46. package/dist/integration-profile/integration-profile.controller.js.map +1 -0
  47. package/dist/integration-profile/integration-profile.module.d.ts +3 -0
  48. package/dist/integration-profile/integration-profile.module.d.ts.map +1 -0
  49. package/dist/integration-profile/integration-profile.module.js +29 -0
  50. package/dist/integration-profile/integration-profile.module.js.map +1 -0
  51. package/dist/integration-profile/integration-profile.service.d.ts +160 -0
  52. package/dist/integration-profile/integration-profile.service.d.ts.map +1 -0
  53. package/dist/integration-profile/integration-profile.service.js +606 -0
  54. package/dist/integration-profile/integration-profile.service.js.map +1 -0
  55. package/dist/integration-profile/integration-profile.utils.d.ts +24 -0
  56. package/dist/integration-profile/integration-profile.utils.d.ts.map +1 -0
  57. package/dist/integration-profile/integration-profile.utils.js +147 -0
  58. package/dist/integration-profile/integration-profile.utils.js.map +1 -0
  59. package/dist/mail/mail.module.d.ts.map +1 -1
  60. package/dist/mail/mail.module.js +27 -19
  61. package/dist/mail/mail.module.js.map +1 -1
  62. package/dist/mail/mail.service.d.ts +3 -2
  63. package/dist/mail/mail.service.d.ts.map +1 -1
  64. package/dist/mail/mail.service.js +25 -47
  65. package/dist/mail/mail.service.js.map +1 -1
  66. package/dist/mcp/mcp.module.js +2 -2
  67. package/dist/mcp/mcp.module.js.map +1 -1
  68. package/dist/mcp/tools/core-mail-profile.mcp-tools.d.ts +3 -15
  69. package/dist/mcp/tools/core-mail-profile.mcp-tools.d.ts.map +1 -1
  70. package/dist/mcp/tools/core-mail-profile.mcp-tools.js +12 -94
  71. package/dist/mcp/tools/core-mail-profile.mcp-tools.js.map +1 -1
  72. package/dist/mcp-chat/mcp-chat.service.d.ts.map +1 -1
  73. package/dist/mcp-chat/mcp-chat.service.js +17 -16
  74. package/dist/mcp-chat/mcp-chat.service.js.map +1 -1
  75. package/dist/setting/setting.service.d.ts.map +1 -1
  76. package/dist/setting/setting.service.js +0 -2
  77. package/dist/setting/setting.service.js.map +1 -1
  78. package/dist/webhook-integration/event-webhook.controller.d.ts +1 -0
  79. package/dist/webhook-integration/event-webhook.controller.d.ts.map +1 -1
  80. package/dist/webhook-integration/event-webhook.controller.js +10 -0
  81. package/dist/webhook-integration/event-webhook.controller.js.map +1 -1
  82. package/dist/webhook-integration/event-webhook.service.d.ts +2 -0
  83. package/dist/webhook-integration/event-webhook.service.d.ts.map +1 -1
  84. package/dist/webhook-integration/event-webhook.service.js +30 -0
  85. package/dist/webhook-integration/event-webhook.service.js.map +1 -1
  86. package/dist/webhook-integration/webhook-integration.controller.d.ts +1 -0
  87. package/dist/webhook-integration/webhook-integration.controller.d.ts.map +1 -1
  88. package/dist/webhook-integration/webhook-integration.controller.js +10 -0
  89. package/dist/webhook-integration/webhook-integration.controller.js.map +1 -1
  90. package/dist/webhook-integration/webhook-integration.service.d.ts +2 -1
  91. package/dist/webhook-integration/webhook-integration.service.d.ts.map +1 -1
  92. package/dist/webhook-integration/webhook-integration.service.js +62 -44
  93. package/dist/webhook-integration/webhook-integration.service.js.map +1 -1
  94. package/dist/whatsapp-profile/dto/create.dto.d.ts +11 -0
  95. package/dist/whatsapp-profile/dto/create.dto.d.ts.map +1 -0
  96. package/dist/whatsapp-profile/dto/create.dto.js +55 -0
  97. package/dist/whatsapp-profile/dto/create.dto.js.map +1 -0
  98. package/dist/whatsapp-profile/dto/update.dto.d.ts +6 -0
  99. package/dist/whatsapp-profile/dto/update.dto.d.ts.map +1 -0
  100. package/dist/whatsapp-profile/dto/update.dto.js +9 -0
  101. package/dist/whatsapp-profile/dto/update.dto.js.map +1 -0
  102. package/dist/whatsapp-profile/whatsapp-profile.controller.d.ts +54 -0
  103. package/dist/whatsapp-profile/whatsapp-profile.controller.d.ts.map +1 -0
  104. package/dist/whatsapp-profile/whatsapp-profile.controller.js +85 -0
  105. package/dist/whatsapp-profile/whatsapp-profile.controller.js.map +1 -0
  106. package/dist/whatsapp-profile/whatsapp-profile.module.d.ts +3 -0
  107. package/dist/whatsapp-profile/whatsapp-profile.module.d.ts.map +1 -0
  108. package/dist/whatsapp-profile/whatsapp-profile.module.js +26 -0
  109. package/dist/whatsapp-profile/whatsapp-profile.module.js.map +1 -0
  110. package/dist/whatsapp-profile/whatsapp-profile.service.d.ts +63 -0
  111. package/dist/whatsapp-profile/whatsapp-profile.service.d.ts.map +1 -0
  112. package/dist/whatsapp-profile/whatsapp-profile.service.js +138 -0
  113. package/dist/whatsapp-profile/whatsapp-profile.service.js.map +1 -0
  114. package/hedhog/data/file_provider.yaml +9 -1
  115. package/hedhog/data/integration_provider.yaml +132 -0
  116. package/hedhog/data/integration_type.yaml +29 -0
  117. package/hedhog/data/menu.yaml +15 -14
  118. package/hedhog/data/role.yaml +8 -0
  119. package/hedhog/data/route.yaml +66 -15
  120. package/hedhog/data/setting_group.yaml +30 -191
  121. package/hedhog/data/setting_subgroup.yaml +5 -13
  122. package/hedhog/data/whatsapp_profile.yaml +6 -0
  123. package/hedhog/frontend/app/account/components/connected-accounts.tsx.ejs +25 -20
  124. package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +579 -204
  125. package/hedhog/frontend/app/integration/profiles/page.tsx.ejs +1662 -0
  126. package/hedhog/frontend/app/integrations-webhooks/page.tsx.ejs +233 -108
  127. package/hedhog/frontend/app/mail/profiles/page.tsx.ejs +3 -822
  128. package/hedhog/frontend/app/users/permissions.tsx.ejs +79 -2
  129. package/hedhog/frontend/app/users/user-sheet.tsx.ejs +7 -2
  130. package/hedhog/frontend/messages/en.json +172 -0
  131. package/hedhog/frontend/messages/pt.json +172 -0
  132. package/hedhog/table/integration_profile.yaml +34 -0
  133. package/hedhog/table/integration_provider.yaml +23 -0
  134. package/hedhog/table/integration_type.yaml +19 -0
  135. package/hedhog/table/webhook_action.yaml +85 -85
  136. package/hedhog/table/whatsapp_profile.yaml +26 -0
  137. package/package.json +2 -2
  138. package/src/ai/ai.service.ts +35 -153
  139. package/src/core.module.ts +3 -3
  140. package/src/file/file.service.ts +60 -76
  141. package/src/file/provider/provider.enum.ts +1 -0
  142. package/src/file/provider/provider.factory.ts +3 -0
  143. package/src/file/provider/spaces.provider.ts +261 -0
  144. package/src/index.ts +6 -3
  145. package/src/integration-profile/dto/create.dto.ts +44 -0
  146. package/src/integration-profile/dto/export.dto.ts +15 -0
  147. package/src/integration-profile/dto/import-confirm.dto.ts +61 -0
  148. package/src/integration-profile/dto/update.dto.ts +4 -0
  149. package/src/integration-profile/integration-profile.controller.ts +129 -0
  150. package/src/integration-profile/integration-profile.module.ts +16 -0
  151. package/src/integration-profile/integration-profile.service.ts +788 -0
  152. package/src/integration-profile/integration-profile.utils.ts +156 -0
  153. package/src/mail/mail.module.ts +27 -18
  154. package/src/mail/mail.service.ts +31 -60
  155. package/src/mcp/mcp.module.ts +2 -2
  156. package/src/mcp/tools/core-mail-profile.mcp-tools.ts +10 -69
  157. package/src/mcp-chat/mcp-chat.service.ts +23 -20
  158. package/src/setting/setting.service.ts +0 -2
  159. package/src/webhook-integration/event-webhook.controller.ts +55 -50
  160. package/src/webhook-integration/event-webhook.service.ts +422 -384
  161. package/src/webhook-integration/webhook-integration.controller.ts +5 -0
  162. package/src/webhook-integration/webhook-integration.service.ts +74 -46
  163. package/src/whatsapp-profile/dto/create.dto.ts +36 -0
  164. package/src/whatsapp-profile/dto/update.dto.ts +4 -0
  165. package/src/whatsapp-profile/whatsapp-profile.controller.ts +51 -0
  166. package/src/whatsapp-profile/whatsapp-profile.module.ts +13 -0
  167. package/src/whatsapp-profile/whatsapp-profile.service.ts +160 -0
@@ -0,0 +1,54 @@
1
+ import { DeleteDTO } from '@hed-hog/api';
2
+ import { CreateDTO } from './dto/create.dto';
3
+ import { UpdateDTO } from './dto/update.dto';
4
+ import { WhatsAppProfileService } from './whatsapp-profile.service';
5
+ export declare class WhatsAppProfileController {
6
+ private readonly whatsappProfileService;
7
+ constructor(whatsappProfileService: WhatsAppProfileService);
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
+ host: string;
21
+ provider: import("@prisma/client").$Enums.whatsapp_profile_provider_enum;
22
+ created_at: Date;
23
+ updated_at: Date;
24
+ slug: string;
25
+ token: string;
26
+ instance_name: string;
27
+ }>;
28
+ create(data: CreateDTO): Promise<{
29
+ name: string;
30
+ id: number;
31
+ host: string;
32
+ provider: import("@prisma/client").$Enums.whatsapp_profile_provider_enum;
33
+ created_at: Date;
34
+ updated_at: Date;
35
+ slug: string;
36
+ token: string;
37
+ instance_name: string;
38
+ }>;
39
+ update(id: number, data: UpdateDTO): Promise<{
40
+ name: string;
41
+ id: number;
42
+ host: string;
43
+ provider: import("@prisma/client").$Enums.whatsapp_profile_provider_enum;
44
+ created_at: Date;
45
+ updated_at: Date;
46
+ slug: string;
47
+ token: string;
48
+ instance_name: string;
49
+ }>;
50
+ delete(data: DeleteDTO): Promise<{
51
+ count: number;
52
+ }>;
53
+ }
54
+ //# sourceMappingURL=whatsapp-profile.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-profile.controller.d.ts","sourceRoot":"","sources":["../../src/whatsapp-profile/whatsapp-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,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAEa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;gBAAtB,sBAAsB,EAAE,sBAAsB;IAI3D,IAAI,CAAe,gBAAgB,KAAA;;;;;;;;;IAKnC,GAAG,CAA4B,EAAE,EAAE,MAAM;;;;;;;;;;;IAKzC,MAAM,CAAS,IAAI,EAAE,SAAS;;;;;;;;;;;IAK9B,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;;;;;;;;;;;IAKrE,MAAM,CAAS,IAAI,EAAE,SAAS;;;CAGrC"}
@@ -0,0 +1,85 @@
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.WhatsAppProfileController = 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 whatsapp_profile_service_1 = require("./whatsapp-profile.service");
22
+ let WhatsAppProfileController = class WhatsAppProfileController {
23
+ constructor(whatsappProfileService) {
24
+ this.whatsappProfileService = whatsappProfileService;
25
+ }
26
+ async list(paginationParams) {
27
+ return this.whatsappProfileService.list(paginationParams);
28
+ }
29
+ async get(id) {
30
+ return this.whatsappProfileService.get(id);
31
+ }
32
+ async create(data) {
33
+ return this.whatsappProfileService.create(data);
34
+ }
35
+ async update(id, data) {
36
+ return this.whatsappProfileService.update({ id, data });
37
+ }
38
+ async delete(data) {
39
+ return this.whatsappProfileService.delete(data);
40
+ }
41
+ };
42
+ exports.WhatsAppProfileController = WhatsAppProfileController;
43
+ __decorate([
44
+ (0, common_1.Get)(),
45
+ __param(0, (0, api_pagination_1.Pagination)()),
46
+ __metadata("design:type", Function),
47
+ __metadata("design:paramtypes", [Object]),
48
+ __metadata("design:returntype", Promise)
49
+ ], WhatsAppProfileController.prototype, "list", null);
50
+ __decorate([
51
+ (0, common_1.Get)(':id'),
52
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
53
+ __metadata("design:type", Function),
54
+ __metadata("design:paramtypes", [Number]),
55
+ __metadata("design:returntype", Promise)
56
+ ], WhatsAppProfileController.prototype, "get", null);
57
+ __decorate([
58
+ (0, common_1.Post)(),
59
+ __param(0, (0, common_1.Body)()),
60
+ __metadata("design:type", Function),
61
+ __metadata("design:paramtypes", [create_dto_1.CreateDTO]),
62
+ __metadata("design:returntype", Promise)
63
+ ], WhatsAppProfileController.prototype, "create", null);
64
+ __decorate([
65
+ (0, common_1.Patch)(':id'),
66
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
67
+ __param(1, (0, common_1.Body)()),
68
+ __metadata("design:type", Function),
69
+ __metadata("design:paramtypes", [Number, update_dto_1.UpdateDTO]),
70
+ __metadata("design:returntype", Promise)
71
+ ], WhatsAppProfileController.prototype, "update", null);
72
+ __decorate([
73
+ (0, common_1.Delete)(),
74
+ __param(0, (0, common_1.Body)()),
75
+ __metadata("design:type", Function),
76
+ __metadata("design:paramtypes", [api_1.DeleteDTO]),
77
+ __metadata("design:returntype", Promise)
78
+ ], WhatsAppProfileController.prototype, "delete", null);
79
+ exports.WhatsAppProfileController = WhatsAppProfileController = __decorate([
80
+ (0, api_1.Role)(),
81
+ (0, common_1.Controller)('whatsapp-profile'),
82
+ __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => whatsapp_profile_service_1.WhatsAppProfileService))),
83
+ __metadata("design:paramtypes", [whatsapp_profile_service_1.WhatsAppProfileService])
84
+ ], WhatsAppProfileController);
85
+ //# sourceMappingURL=whatsapp-profile.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-profile.controller.js","sourceRoot":"","sources":["../../src/whatsapp-profile/whatsapp-profile.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA+C;AAC/C,4DAAqD;AACrD,2CAWwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,yEAAoE;AAI7D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAEmB,sBAA8C;QAA9C,2BAAsB,GAAtB,sBAAsB,CAAwB;IAC9D,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB;QACvC,OAAO,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC5D,CAAC;IAGK,AAAN,KAAK,CAAC,GAAG,CAA4B,EAAU;QAC7C,OAAO,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC7C,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,IAAe;QAClC,OAAO,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAA4B,EAAU,EAAU,IAAe;QACzE,OAAO,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,IAAe;QAClC,OAAO,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AA9BY,8DAAyB;AAO9B;IADL,IAAA,YAAG,GAAE;IACM,WAAA,IAAA,2BAAU,GAAE,CAAA;;;;qDAEvB;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;oDAEnC;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;uDAEnC;AAGK;IADL,IAAA,cAAK,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;uDAE1E;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,eAAS;;uDAEnC;oCA7BU,yBAAyB;IAFrC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,kBAAkB,CAAC;IAG1B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC,CAAC,CAAA;qCACR,iDAAsB;GAHtD,yBAAyB,CA8BrC"}
@@ -0,0 +1,3 @@
1
+ export declare class WhatsAppProfileModule {
2
+ }
3
+ //# sourceMappingURL=whatsapp-profile.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-profile.module.d.ts","sourceRoot":"","sources":["../../src/whatsapp-profile/whatsapp-profile.module.ts"],"names":[],"mappings":"AAMA,qBAMa,qBAAqB;CAAG"}
@@ -0,0 +1,26 @@
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.WhatsAppProfileModule = 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 whatsapp_profile_controller_1 = require("./whatsapp-profile.controller");
14
+ const whatsapp_profile_service_1 = require("./whatsapp-profile.service");
15
+ let WhatsAppProfileModule = class WhatsAppProfileModule {
16
+ };
17
+ exports.WhatsAppProfileModule = WhatsAppProfileModule;
18
+ exports.WhatsAppProfileModule = WhatsAppProfileModule = __decorate([
19
+ (0, common_1.Module)({
20
+ imports: [(0, common_1.forwardRef)(() => api_prisma_1.PrismaModule), (0, common_1.forwardRef)(() => api_pagination_1.PaginationModule)],
21
+ controllers: [whatsapp_profile_controller_1.WhatsAppProfileController],
22
+ providers: [whatsapp_profile_service_1.WhatsAppProfileService],
23
+ exports: [whatsapp_profile_service_1.WhatsAppProfileService],
24
+ })
25
+ ], WhatsAppProfileModule);
26
+ //# sourceMappingURL=whatsapp-profile.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-profile.module.js","sourceRoot":"","sources":["../../src/whatsapp-profile/whatsapp-profile.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,4DAA2D;AAC3D,oDAAmD;AACnD,2CAAoD;AACpD,+EAA0E;AAC1E,yEAAoE;AAQ7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IANjC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC,EAAE,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC,CAAC;QAC7E,WAAW,EAAE,CAAC,uDAAyB,CAAC;QACxC,SAAS,EAAE,CAAC,iDAAsB,CAAC;QACnC,OAAO,EAAE,CAAC,iDAAsB,CAAC;KAClC,CAAC;GACW,qBAAqB,CAAG"}
@@ -0,0 +1,63 @@
1
+ import { DeleteDTO } from '@hed-hog/api';
2
+ import { PaginationDTO, PaginationService } from '@hed-hog/api-pagination';
3
+ import { PrismaService } from '@hed-hog/api-prisma';
4
+ import { CreateDTO } from './dto/create.dto';
5
+ import { UpdateDTO } from './dto/update.dto';
6
+ export declare class WhatsAppProfileService {
7
+ private readonly prismaService;
8
+ private readonly paginationService;
9
+ constructor(prismaService: PrismaService, paginationService: PaginationService);
10
+ list(paginationParams: PaginationDTO): Promise<{
11
+ total: any;
12
+ lastPage: number;
13
+ page: number;
14
+ pageSize: number;
15
+ prev: number;
16
+ next: number;
17
+ data: any[];
18
+ }>;
19
+ get(id: number): Promise<{
20
+ name: string;
21
+ id: number;
22
+ host: string;
23
+ provider: import("@prisma/client").$Enums.whatsapp_profile_provider_enum;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ slug: string;
27
+ token: string;
28
+ instance_name: string;
29
+ }>;
30
+ create(data: CreateDTO): Promise<{
31
+ name: string;
32
+ id: number;
33
+ host: string;
34
+ provider: import("@prisma/client").$Enums.whatsapp_profile_provider_enum;
35
+ created_at: Date;
36
+ updated_at: Date;
37
+ slug: string;
38
+ token: string;
39
+ instance_name: string;
40
+ }>;
41
+ update({ id, data }: {
42
+ id: number;
43
+ data: UpdateDTO;
44
+ }): Promise<{
45
+ name: string;
46
+ id: number;
47
+ host: string;
48
+ provider: import("@prisma/client").$Enums.whatsapp_profile_provider_enum;
49
+ created_at: Date;
50
+ updated_at: Date;
51
+ slug: string;
52
+ token: string;
53
+ instance_name: string;
54
+ }>;
55
+ delete({ ids }: DeleteDTO): Promise<{
56
+ count: number;
57
+ }>;
58
+ private ensureSlugIsAvailable;
59
+ private validateProviderFields;
60
+ private normalizeData;
61
+ private normalizeString;
62
+ }
63
+ //# sourceMappingURL=whatsapp-profile.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-profile.service.d.ts","sourceRoot":"","sources":["../../src/whatsapp-profile/whatsapp-profile.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,sBAAsB;IAG/B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,IAAI,CAAC,gBAAgB,EAAE,aAAa;;;;;;;;;IAyBpC,GAAG,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;IAYd,MAAM,CAAC,IAAI,EAAE,SAAS;;;;;;;;;;;IAStB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;;;;;;;;;;;IA0BpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;YAc9C,qBAAqB;IAanC,OAAO,CAAC,sBAAsB;IAwB9B,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,eAAe;CAGxB"}
@@ -0,0 +1,138 @@
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.WhatsAppProfileService = void 0;
16
+ const api_pagination_1 = require("@hed-hog/api-pagination");
17
+ const api_prisma_1 = require("@hed-hog/api-prisma");
18
+ const common_1 = require("@nestjs/common");
19
+ let WhatsAppProfileService = class WhatsAppProfileService {
20
+ constructor(prismaService, paginationService) {
21
+ this.prismaService = prismaService;
22
+ this.paginationService = paginationService;
23
+ }
24
+ async list(paginationParams) {
25
+ const fields = ['slug', 'name', 'host', 'instance_name'];
26
+ const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
27
+ return this.paginationService.paginate(this.prismaService.whatsapp_profile, paginationParams, {
28
+ where: OR.length > 0 ? { OR } : {},
29
+ select: {
30
+ id: true,
31
+ slug: true,
32
+ name: true,
33
+ provider: true,
34
+ host: true,
35
+ token: true,
36
+ instance_name: true,
37
+ created_at: true,
38
+ updated_at: true,
39
+ },
40
+ orderBy: [{ updated_at: 'desc' }, { id: 'desc' }],
41
+ });
42
+ }
43
+ async get(id) {
44
+ const profile = await this.prismaService.whatsapp_profile.findUnique({
45
+ where: { id },
46
+ });
47
+ if (!profile) {
48
+ throw new common_1.NotFoundException(`WhatsApp profile with id ${id} not found.`);
49
+ }
50
+ return profile;
51
+ }
52
+ async create(data) {
53
+ await this.ensureSlugIsAvailable(data.slug);
54
+ this.validateProviderFields(data);
55
+ return this.prismaService.whatsapp_profile.create({
56
+ data: this.normalizeData(data),
57
+ });
58
+ }
59
+ async update({ id, data }) {
60
+ const existing = await this.prismaService.whatsapp_profile.findUnique({
61
+ where: { id },
62
+ });
63
+ if (!existing) {
64
+ throw new common_1.NotFoundException(`WhatsApp profile with id ${id} not found.`);
65
+ }
66
+ if (data.slug && data.slug !== existing.slug) {
67
+ await this.ensureSlugIsAvailable(data.slug);
68
+ }
69
+ const merged = Object.assign(Object.assign({}, existing), data);
70
+ this.validateProviderFields(merged);
71
+ return this.prismaService.whatsapp_profile.update({
72
+ where: { id },
73
+ data: this.normalizeData(merged),
74
+ });
75
+ }
76
+ async delete({ ids }) {
77
+ if (!(ids === null || ids === void 0 ? void 0 : ids.length)) {
78
+ throw new common_1.BadRequestException('You must select at least one item to delete.');
79
+ }
80
+ return this.prismaService.whatsapp_profile.deleteMany({
81
+ where: {
82
+ id: {
83
+ in: ids,
84
+ },
85
+ },
86
+ });
87
+ }
88
+ async ensureSlugIsAvailable(slug) {
89
+ const existing = await this.prismaService.whatsapp_profile.findUnique({
90
+ where: { slug },
91
+ select: { id: true },
92
+ });
93
+ if (existing) {
94
+ throw new common_1.BadRequestException(`WhatsApp profile with slug "${slug}" already exists.`);
95
+ }
96
+ }
97
+ validateProviderFields(input) {
98
+ var _a, _b, _c, _d;
99
+ const provider = String((_a = input.provider) !== null && _a !== void 0 ? _a : '').toUpperCase();
100
+ if (!provider) {
101
+ throw new common_1.BadRequestException('Provider is required.');
102
+ }
103
+ if (provider !== 'WHATSAPP_API') {
104
+ throw new common_1.BadRequestException(`Invalid provider: ${provider}`);
105
+ }
106
+ if (!String((_b = input.host) !== null && _b !== void 0 ? _b : '').trim()) {
107
+ throw new common_1.BadRequestException('WhatsApp host is required.');
108
+ }
109
+ if (!String((_c = input.token) !== null && _c !== void 0 ? _c : '').trim()) {
110
+ throw new common_1.BadRequestException('WhatsApp token is required.');
111
+ }
112
+ if (!String((_d = input.instance_name) !== null && _d !== void 0 ? _d : '').trim()) {
113
+ throw new common_1.BadRequestException('WhatsApp instance name is required.');
114
+ }
115
+ }
116
+ normalizeData(input) {
117
+ return {
118
+ slug: this.normalizeString(input.slug),
119
+ name: this.normalizeString(input.name),
120
+ provider: 'WHATSAPP_API',
121
+ host: this.normalizeString(input.host),
122
+ token: this.normalizeString(input.token),
123
+ instance_name: this.normalizeString(input.instance_name),
124
+ };
125
+ }
126
+ normalizeString(value) {
127
+ return String(value !== null && value !== void 0 ? value : '').trim();
128
+ }
129
+ };
130
+ exports.WhatsAppProfileService = WhatsAppProfileService;
131
+ exports.WhatsAppProfileService = WhatsAppProfileService = __decorate([
132
+ (0, common_1.Injectable)(),
133
+ __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_prisma_1.PrismaService))),
134
+ __param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_pagination_1.PaginationService))),
135
+ __metadata("design:paramtypes", [api_prisma_1.PrismaService,
136
+ api_pagination_1.PaginationService])
137
+ ], WhatsAppProfileService);
138
+ //# sourceMappingURL=whatsapp-profile.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-profile.service.js","sourceRoot":"","sources":["../../src/whatsapp-profile/whatsapp-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4DAA2E;AAC3E,oDAAoD;AACpD,2CAMwB;AAKjB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACp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,EAAE,CAAC;YAC9C,MAAM,IAAI,4BAAmB,CAAC,qCAAqC,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAEO,aAAa,CAAC,KAA8B;QAClD,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;YACtC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;YACtC,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;YACtC,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;YACxC,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,aAAa,CAAC;SACzD,CAAC;IACJ,CAAC;IAEO,eAAe,CAAC,KAAc;QACpC,OAAO,MAAM,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;CACF,CAAA;AAjJY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC,CAAC,CAAA;qCADZ,0BAAa;QAET,kCAAiB;GAL5C,sBAAsB,CAiJlC"}
@@ -9,4 +9,12 @@
9
9
  - slug: abs
10
10
  name:
11
11
  en: Azure Blob Storage
12
- pt: Azure Blob Storage
12
+ pt: Azure Blob Storage
13
+ - slug: spaces
14
+ name:
15
+ en: DigitalOcean Spaces
16
+ pt: DigitalOcean Spaces
17
+ - slug: gcs
18
+ name:
19
+ en: Google Cloud Storage
20
+ pt: Google Cloud Storage
@@ -0,0 +1,132 @@
1
+ # Email providers
2
+ - slug: smtp
3
+ type_id:
4
+ where:
5
+ slug: email
6
+ name:
7
+ en: SMTP
8
+ pt: SMTP
9
+
10
+ - slug: gmail
11
+ type_id:
12
+ where:
13
+ slug: email
14
+ name:
15
+ en: Gmail
16
+ pt: Gmail
17
+
18
+ - slug: ses
19
+ type_id:
20
+ where:
21
+ slug: email
22
+ name:
23
+ en: Amazon SES
24
+ pt: Amazon SES
25
+
26
+ # WhatsApp providers
27
+ - slug: evolution-api
28
+ type_id:
29
+ where:
30
+ slug: whatsapp
31
+ name:
32
+ en: Evolution API
33
+ pt: Evolution API
34
+
35
+ - slug: whatsapp-official
36
+ type_id:
37
+ where:
38
+ slug: whatsapp
39
+ name:
40
+ en: WhatsApp Official API
41
+ pt: API Oficial do WhatsApp
42
+
43
+ # Storage providers
44
+ - slug: local
45
+ type_id:
46
+ where:
47
+ slug: storage
48
+ name:
49
+ en: Local Filesystem
50
+ pt: Sistema de Arquivos Local
51
+
52
+ - slug: s3
53
+ type_id:
54
+ where:
55
+ slug: storage
56
+ name:
57
+ en: Amazon S3
58
+ pt: Amazon S3
59
+
60
+ - slug: gcs
61
+ type_id:
62
+ where:
63
+ slug: storage
64
+ name:
65
+ en: Google Cloud Storage
66
+ pt: Google Cloud Storage
67
+
68
+ - slug: azure-blob
69
+ type_id:
70
+ where:
71
+ slug: storage
72
+ name:
73
+ en: Azure Blob Storage
74
+ pt: Azure Blob Storage
75
+
76
+ - slug: s3-compatible
77
+ type_id:
78
+ where:
79
+ slug: storage
80
+ name:
81
+ en: S3-Compatible (MinIO, Wasabi...)
82
+ pt: S3-Compatível (MinIO, Wasabi...)
83
+
84
+ # AI providers
85
+ - slug: openai
86
+ type_id:
87
+ where:
88
+ slug: ai
89
+ name:
90
+ en: OpenAI
91
+ pt: OpenAI
92
+
93
+ - slug: gemini
94
+ type_id:
95
+ where:
96
+ slug: ai
97
+ name:
98
+ en: Google Gemini
99
+ pt: Google Gemini
100
+
101
+ - slug: claude
102
+ type_id:
103
+ where:
104
+ slug: ai
105
+ name:
106
+ en: Anthropic Claude
107
+ pt: Anthropic Claude
108
+
109
+ # OAuth providers
110
+ - slug: google-oauth
111
+ type_id:
112
+ where:
113
+ slug: oauth
114
+ name:
115
+ en: Google
116
+ pt: Google
117
+
118
+ - slug: github-oauth
119
+ type_id:
120
+ where:
121
+ slug: oauth
122
+ name:
123
+ en: GitHub
124
+ pt: GitHub
125
+
126
+ - slug: microsoft-oauth
127
+ type_id:
128
+ where:
129
+ slug: oauth
130
+ name:
131
+ en: Microsoft
132
+ pt: Microsoft
@@ -0,0 +1,29 @@
1
+ - slug: email
2
+ name:
3
+ en: Email
4
+ pt: E-mail
5
+ icon: mail
6
+
7
+ - slug: whatsapp
8
+ name:
9
+ en: WhatsApp
10
+ pt: WhatsApp
11
+ icon: message-circle
12
+
13
+ - slug: storage
14
+ name:
15
+ en: Storage
16
+ pt: Armazenamento
17
+ icon: hard-drive
18
+
19
+ - slug: ai
20
+ name:
21
+ en: Artificial Intelligence
22
+ pt: Inteligência Artificial
23
+ icon: bot
24
+
25
+ - slug: oauth
26
+ name:
27
+ en: OAuth / SSO
28
+ pt: OAuth / SSO
29
+ icon: key-round
@@ -153,6 +153,21 @@
153
153
  slug: admin
154
154
  - where:
155
155
  slug: admin-mail
156
+ - menu_id:
157
+ where:
158
+ slug: /core/management
159
+ url: /core/integration/profiles
160
+ order: 5
161
+ icon: plug-2
162
+ name:
163
+ en: Integration Profiles
164
+ pt: Perfis de Integração
165
+ slug: /core/integration/profiles
166
+ relations:
167
+ role:
168
+ - where:
169
+ slug: admin
170
+
156
171
  - menu_id:
157
172
  where:
158
173
  slug: /core/management
@@ -212,20 +227,6 @@
212
227
  - where:
213
228
  slug: admin
214
229
 
215
- - menu_id:
216
- where:
217
- slug: /core/management
218
- url: /core/routes
219
- order: 8
220
- icon: route
221
- name:
222
- en: Routes
223
- pt: Rotas
224
- slug: /core/routes
225
- relations:
226
- role:
227
- - where:
228
- slug: admin
229
230
  - url: /core/users
230
231
  order: 0
231
232
  icon: users
@@ -33,3 +33,11 @@
33
33
  description:
34
34
  en: Public user who can register and log in.
35
35
  pt: Usuário público que pode se registrar e fazer login.
36
+ - slug: email-integration-search
37
+ name:
38
+ en: Email Integration Search
39
+ pt: Busca de Integração de Email
40
+ description:
41
+ en: Access to search and select email integration profiles.
42
+ pt: Acesso para buscar e selecionar perfis de integração de email.
43
+