@venturialstd/workflow 0.1.115 → 0.1.116
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.
- package/README.md +238 -238
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
- package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
- package/dist/modules/chatbot/actions/index.d.ts +4 -0
- package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/index.js +20 -0
- package/dist/modules/chatbot/actions/index.js.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.js +52 -0
- package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
- package/dist/modules/chatbot/chatbot-nest.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot-nest.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot-nest.module.js +21 -0
- package/dist/modules/chatbot/chatbot-nest.module.js.map +1 -0
- package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot.module.js +17 -0
- package/dist/modules/chatbot/chatbot.module.js.map +1 -0
- package/dist/modules/chatbot/credentials.d.ts +3 -0
- package/dist/modules/chatbot/credentials.d.ts.map +1 -0
- package/dist/modules/chatbot/credentials.js +5 -0
- package/dist/modules/chatbot/credentials.js.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.js +25 -0
- package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
- package/dist/modules/chatbot/services/index.d.ts +5 -0
- package/dist/modules/chatbot/services/index.d.ts.map +1 -0
- package/dist/modules/chatbot/services/index.js +21 -0
- package/dist/modules/chatbot/services/index.js.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
- package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.js +27 -0
- package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.js +25 -0
- package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
- package/dist/modules/chatbot/triggers/index.d.ts +2 -0
- package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/index.js +18 -0
- package/dist/modules/chatbot/triggers/index.js.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/chat-completion.action.js +4 -56
- package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -1
- package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt-nest.module.js +0 -2
- package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.js +0 -2
- package/dist/modules/chatgpt/chatgpt.module.js.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts +1 -4
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.js +19 -92
- package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -1
- package/dist/modules/email/actions/index.d.ts +3 -0
- package/dist/modules/email/actions/index.d.ts.map +1 -0
- package/dist/modules/email/actions/index.js +19 -0
- package/dist/modules/email/actions/index.js.map +1 -0
- package/dist/modules/email/actions/send-email.action.d.ts +3 -0
- package/dist/modules/email/actions/send-email.action.d.ts.map +1 -0
- package/dist/modules/email/actions/send-email.action.js +84 -0
- package/dist/modules/email/actions/send-email.action.js.map +1 -0
- package/dist/modules/email/actions/send-template-email.action.d.ts +3 -0
- package/dist/modules/email/actions/send-template-email.action.d.ts.map +1 -0
- package/dist/modules/email/actions/send-template-email.action.js +91 -0
- package/dist/modules/email/actions/send-template-email.action.js.map +1 -0
- package/dist/modules/email/auth/email-auth.service.d.ts +9 -0
- package/dist/modules/email/auth/email-auth.service.d.ts.map +1 -0
- package/dist/modules/email/auth/email-auth.service.js +150 -0
- package/dist/modules/email/auth/email-auth.service.js.map +1 -0
- package/dist/modules/email/auth/index.d.ts +2 -0
- package/dist/modules/email/auth/index.d.ts.map +1 -0
- package/dist/modules/email/auth/index.js +18 -0
- package/dist/modules/email/auth/index.js.map +1 -0
- package/dist/modules/email/credentials.d.ts +3 -0
- package/dist/modules/email/credentials.d.ts.map +1 -0
- package/dist/modules/email/credentials.js +81 -0
- package/dist/modules/email/credentials.js.map +1 -0
- package/dist/modules/email/email-nest.module.d.ts +3 -0
- package/dist/modules/email/email-nest.module.d.ts.map +1 -0
- package/dist/modules/email/email-nest.module.js +24 -0
- package/dist/modules/email/email-nest.module.js.map +1 -0
- package/dist/modules/email/email.module.d.ts +3 -0
- package/dist/modules/email/email.module.d.ts.map +1 -0
- package/dist/modules/email/email.module.js +19 -0
- package/dist/modules/email/email.module.js.map +1 -0
- package/dist/modules/email/services/index.d.ts +3 -0
- package/dist/modules/email/services/index.d.ts.map +1 -0
- package/dist/modules/email/services/index.js +19 -0
- package/dist/modules/email/services/index.js.map +1 -0
- package/dist/modules/email/services/send-email.service.d.ts +9 -0
- package/dist/modules/email/services/send-email.service.d.ts.map +1 -0
- package/dist/modules/email/services/send-email.service.js +99 -0
- package/dist/modules/email/services/send-email.service.js.map +1 -0
- package/dist/modules/email/services/send-template-email.service.d.ts +9 -0
- package/dist/modules/email/services/send-template-email.service.d.ts.map +1 -0
- package/dist/modules/email/services/send-template-email.service.js +99 -0
- package/dist/modules/email/services/send-template-email.service.js.map +1 -0
- package/dist/modules/email/utils/template-options.util.d.ts +6 -0
- package/dist/modules/email/utils/template-options.util.d.ts.map +1 -0
- package/dist/modules/email/utils/template-options.util.js +30 -0
- package/dist/modules/email/utils/template-options.util.js.map +1 -0
- package/dist/modules/index.d.ts +2 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +9 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +9 -3
- package/dist/workflow.module.js.map +1 -1
- package/package.json +107 -106
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts +0 -5
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts.map +0 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js +0 -68
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js.map +0 -1
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts +0 -4
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts.map +0 -1
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js +0 -32
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-options.util.d.ts","sourceRoot":"","sources":["../../../../src/modules/email/utils/template-options.util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAUpD,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAiClD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadEmailTemplateOptions = loadEmailTemplateOptions;
|
|
4
|
+
const email_1 = require("@venturialstd/email");
|
|
5
|
+
async function loadEmailTemplateOptions(context) {
|
|
6
|
+
try {
|
|
7
|
+
const dataSource = global.dataSource;
|
|
8
|
+
if (!dataSource || !dataSource.isInitialized) {
|
|
9
|
+
console.warn('DataSource not available for loading email templates');
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
const templateRepo = dataSource.getRepository(email_1.EmailTemplate);
|
|
13
|
+
const templates = await templateRepo.find({
|
|
14
|
+
where: { isActive: true },
|
|
15
|
+
order: { name: 'ASC' },
|
|
16
|
+
select: ['name', 'subject', 'description'],
|
|
17
|
+
});
|
|
18
|
+
return templates.map((template) => ({
|
|
19
|
+
label: template.description
|
|
20
|
+
? `${template.name} - ${template.description}`
|
|
21
|
+
: template.name,
|
|
22
|
+
value: template.name,
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
console.error('Error loading email template options:', error);
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=template-options.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-options.util.js","sourceRoot":"","sources":["../../../../src/modules/email/utils/template-options.util.ts"],"names":[],"mappings":";;AAaA,4DAmCC;AA/CD,+CAAoD;AAY7C,KAAK,UAAU,wBAAwB,CAC5C,OAA8B;IAE9B,IAAI,CAAC;QAGH,MAAM,UAAU,GAAI,MAAc,CAAC,UAAwB,CAAC;QAE5D,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAC7C,OAAO,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;YACrE,OAAO,EAAE,CAAC;QACZ,CAAC;QAGD,MAAM,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC,qBAAa,CAAC,CAAC;QAG7D,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC;YACxC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YACzB,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YACtB,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC;SAC3C,CAAC,CAAC;QAGH,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAClC,KAAK,EAAE,QAAQ,CAAC,WAAW;gBACzB,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,MAAM,QAAQ,CAAC,WAAW,EAAE;gBAC9C,CAAC,CAAC,QAAQ,CAAC,IAAI;YACjB,KAAK,EAAE,QAAQ,CAAC,IAAI;SACrB,CAAC,CAAC,CAAC;IACN,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAEf,OAAO,CAAC,KAAK,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC;QAC9D,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export { aiModule } from './ai/ai.module';
|
|
3
3
|
export { capaModule } from './capa/capa.module';
|
|
4
|
+
export { chatbotModule } from './chatbot/chatbot.module';
|
|
4
5
|
export { chatgptModule } from './chatgpt/chatgpt.module';
|
|
5
6
|
export { circleModule } from './circle/circle.module';
|
|
6
7
|
export { conditionalModule } from './conditional/conditional.module';
|
|
8
|
+
export { emailModule } from './email/email.module';
|
|
7
9
|
export { eventsModule } from './events/events.module';
|
|
8
10
|
export { fintechModule } from './fintech/fintech.module';
|
|
9
11
|
export { inbestgoModule } from './inbestgo/inbestgo.module';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAyFA,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAyFA,cAAc,SAAS,CAAC;AA6CxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/modules/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhookModule = exports.vcardModule = exports.validationModule = exports.userModule = exports.twilioModule = exports.toolboxModule = exports.slackModule = exports.sessionModule = exports.kiraModule = exports.inbestgoModule = exports.fintechModule = exports.eventsModule = exports.conditionalModule = exports.circleModule = exports.chatgptModule = exports.capaModule = exports.aiModule = void 0;
|
|
39
|
+
exports.webhookModule = exports.vcardModule = exports.validationModule = exports.userModule = exports.twilioModule = exports.toolboxModule = exports.slackModule = exports.sessionModule = exports.kiraModule = exports.inbestgoModule = exports.fintechModule = exports.eventsModule = exports.emailModule = exports.conditionalModule = exports.circleModule = exports.chatgptModule = exports.chatbotModule = exports.capaModule = exports.aiModule = void 0;
|
|
40
40
|
const fs = __importStar(require("fs"));
|
|
41
41
|
const path = __importStar(require("path"));
|
|
42
42
|
const types_1 = require("./types");
|
|
@@ -101,9 +101,11 @@ registerModules().catch((error) => {
|
|
|
101
101
|
__exportStar(require("./types"), exports);
|
|
102
102
|
const ai_module_1 = require("./ai/ai.module");
|
|
103
103
|
const capa_module_1 = require("./capa/capa.module");
|
|
104
|
+
const chatbot_module_1 = require("./chatbot/chatbot.module");
|
|
104
105
|
const chatgpt_module_1 = require("./chatgpt/chatgpt.module");
|
|
105
106
|
const circle_module_1 = require("./circle/circle.module");
|
|
106
107
|
const conditional_module_1 = require("./conditional/conditional.module");
|
|
108
|
+
const email_module_1 = require("./email/email.module");
|
|
107
109
|
const events_module_1 = require("./events/events.module");
|
|
108
110
|
const fintech_module_1 = require("./fintech/fintech.module");
|
|
109
111
|
const inbestgo_module_1 = require("./inbestgo/inbestgo.module");
|
|
@@ -118,9 +120,11 @@ const vcard_module_1 = require("./vcard/vcard.module");
|
|
|
118
120
|
const webhook_module_1 = require("./webhook/webhook.module");
|
|
119
121
|
types_1.workflowModuleRegistry.register(ai_module_1.aiModule);
|
|
120
122
|
types_1.workflowModuleRegistry.register(capa_module_1.capaModule);
|
|
123
|
+
types_1.workflowModuleRegistry.register(chatbot_module_1.chatbotModule);
|
|
121
124
|
types_1.workflowModuleRegistry.register(chatgpt_module_1.chatgptModule);
|
|
122
125
|
types_1.workflowModuleRegistry.register(circle_module_1.circleModule);
|
|
123
126
|
types_1.workflowModuleRegistry.register(conditional_module_1.conditionalModule);
|
|
127
|
+
types_1.workflowModuleRegistry.register(email_module_1.emailModule);
|
|
124
128
|
types_1.workflowModuleRegistry.register(events_module_1.eventsModule);
|
|
125
129
|
types_1.workflowModuleRegistry.register(fintech_module_1.fintechModule);
|
|
126
130
|
types_1.workflowModuleRegistry.register(inbestgo_module_1.inbestgoModule);
|
|
@@ -137,12 +141,16 @@ var ai_module_2 = require("./ai/ai.module");
|
|
|
137
141
|
Object.defineProperty(exports, "aiModule", { enumerable: true, get: function () { return ai_module_2.aiModule; } });
|
|
138
142
|
var capa_module_2 = require("./capa/capa.module");
|
|
139
143
|
Object.defineProperty(exports, "capaModule", { enumerable: true, get: function () { return capa_module_2.capaModule; } });
|
|
144
|
+
var chatbot_module_2 = require("./chatbot/chatbot.module");
|
|
145
|
+
Object.defineProperty(exports, "chatbotModule", { enumerable: true, get: function () { return chatbot_module_2.chatbotModule; } });
|
|
140
146
|
var chatgpt_module_2 = require("./chatgpt/chatgpt.module");
|
|
141
147
|
Object.defineProperty(exports, "chatgptModule", { enumerable: true, get: function () { return chatgpt_module_2.chatgptModule; } });
|
|
142
148
|
var circle_module_2 = require("./circle/circle.module");
|
|
143
149
|
Object.defineProperty(exports, "circleModule", { enumerable: true, get: function () { return circle_module_2.circleModule; } });
|
|
144
150
|
var conditional_module_2 = require("./conditional/conditional.module");
|
|
145
151
|
Object.defineProperty(exports, "conditionalModule", { enumerable: true, get: function () { return conditional_module_2.conditionalModule; } });
|
|
152
|
+
var email_module_2 = require("./email/email.module");
|
|
153
|
+
Object.defineProperty(exports, "emailModule", { enumerable: true, get: function () { return email_module_2.emailModule; } });
|
|
146
154
|
var events_module_2 = require("./events/events.module");
|
|
147
155
|
Object.defineProperty(exports, "eventsModule", { enumerable: true, get: function () { return events_module_2.eventsModule; } });
|
|
148
156
|
var fintech_module_2 = require("./fintech/fintech.module");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,mCAA2E;AAO3E,KAAK,UAAU,eAAe;IAC5B,MAAM,UAAU,GAAG,SAAS,CAAC;IAG7B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC,gCAAgC,UAAU,EAAE,CAAC,CAAC;QAC3D,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAEpE,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAE5B,IACE,CAAC,KAAK,CAAC,WAAW,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rB,2DAAyD;AAAhD,+GAAA,aAAa,OAAA;AACtB,8DAA4D;AAAnD,iHAAA,cAAc,OAAA;AACvB,kDAAgD;AAAvC,yGAAA,UAAU,OAAA;AACnB,2DAAyD;AAAhD,+GAAA,aAAa,OAAA;AACtB,qDAAmD;AAA1C,2GAAA,WAAW,OAAA;AACpB,2DAAyD;AAAhD,+GAAA,aAAa,OAAA;AACtB,wDAAsD;AAA7C,6GAAA,YAAY,OAAA;AACrB,kDAAgD;AAAvC,yGAAA,UAAU,OAAA;AACnB,oEAAkE;AAAzD,qHAAA,gBAAgB,OAAA;AACzB,qDAAmD;AAA1C,2GAAA,WAAW,OAAA;AACpB,2DAAyD;AAAhD,+GAAA,aAAa,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AA0BnB,qBA+Ca,cAAc;CAAG"}
|
package/dist/workflow.module.js
CHANGED
|
@@ -12,14 +12,17 @@ const common_1 = require("@nestjs/common");
|
|
|
12
12
|
const core_1 = require("@venturialstd/core");
|
|
13
13
|
const ai_nest_module_1 = require("./modules/ai/ai-nest.module");
|
|
14
14
|
const capa_nest_module_1 = require("./modules/capa/capa-nest.module");
|
|
15
|
+
const chatbot_nest_module_1 = require("./modules/chatbot/chatbot-nest.module");
|
|
15
16
|
const chatgpt_nest_module_1 = require("./modules/chatgpt/chatgpt-nest.module");
|
|
16
17
|
const circle_nest_module_1 = require("./modules/circle/circle-nest.module");
|
|
17
18
|
const conditional_nest_module_1 = require("./modules/conditional/conditional-nest.module");
|
|
19
|
+
const email_nest_module_1 = require("./modules/email/email-nest.module");
|
|
18
20
|
const events_nest_module_1 = require("./modules/events/events-nest.module");
|
|
19
21
|
const fintech_nest_module_1 = require("./modules/fintech/fintech-nest.module");
|
|
20
22
|
const inbestgo_nest_module_1 = require("./modules/inbestgo/inbestgo-nest.module");
|
|
21
23
|
const kira_nest_module_1 = require("./modules/kira/kira-nest.module");
|
|
22
24
|
const session_nest_module_1 = require("./modules/session/session-nest.module");
|
|
25
|
+
const slack_nest_module_1 = require("./modules/slack/slack-nest.module");
|
|
23
26
|
const toolbox_nest_module_1 = require("./modules/toolbox/toolbox-nest.module");
|
|
24
27
|
const twilio_nest_module_1 = require("./modules/twilio/twilio-nest.module");
|
|
25
28
|
const user_nest_module_1 = require("./modules/user/user-nest.module");
|
|
@@ -27,7 +30,6 @@ const validation_nest_module_1 = require("./modules/validation/validation-nest.m
|
|
|
27
30
|
const vcard_nest_module_1 = require("./modules/vcard/vcard-nest.module");
|
|
28
31
|
const webhook_nest_module_1 = require("./modules/webhook/webhook-nest.module");
|
|
29
32
|
const workflow_core_module_1 = require("./workflow-core.module");
|
|
30
|
-
const slack_nest_module_1 = require("./modules/slack/slack-nest.module");
|
|
31
33
|
let WorkflowModule = class WorkflowModule {
|
|
32
34
|
};
|
|
33
35
|
exports.WorkflowModule = WorkflowModule;
|
|
@@ -38,41 +40,45 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
38
40
|
workflow_core_module_1.WorkflowCoreModule,
|
|
39
41
|
ai_nest_module_1.AiNestModule,
|
|
40
42
|
capa_nest_module_1.CapaNestModule,
|
|
43
|
+
chatbot_nest_module_1.ChatbotNestModule,
|
|
41
44
|
chatgpt_nest_module_1.ChatGptNestModule,
|
|
42
45
|
circle_nest_module_1.CircleNestModule,
|
|
43
46
|
conditional_nest_module_1.ConditionalNestModule,
|
|
47
|
+
email_nest_module_1.EmailNestModule,
|
|
44
48
|
events_nest_module_1.EventsNestModule,
|
|
45
49
|
fintech_nest_module_1.FintechNestModule,
|
|
46
50
|
inbestgo_nest_module_1.InbestgoNestModule,
|
|
47
51
|
kira_nest_module_1.KiraNestModule,
|
|
48
52
|
session_nest_module_1.SessionNestModule,
|
|
53
|
+
slack_nest_module_1.SlackNestModule,
|
|
49
54
|
toolbox_nest_module_1.ToolboxNestModule,
|
|
50
55
|
twilio_nest_module_1.TwilioNestModule,
|
|
51
56
|
user_nest_module_1.UserNestModule,
|
|
52
57
|
validation_nest_module_1.ValidationNestModule,
|
|
53
58
|
vcard_nest_module_1.VCardNestModule,
|
|
54
59
|
webhook_nest_module_1.WebhookNestModule,
|
|
55
|
-
slack_nest_module_1.SlackNestModule,
|
|
56
60
|
],
|
|
57
61
|
exports: [
|
|
58
62
|
workflow_core_module_1.WorkflowCoreModule,
|
|
59
63
|
ai_nest_module_1.AiNestModule,
|
|
60
64
|
capa_nest_module_1.CapaNestModule,
|
|
65
|
+
chatbot_nest_module_1.ChatbotNestModule,
|
|
61
66
|
chatgpt_nest_module_1.ChatGptNestModule,
|
|
62
67
|
circle_nest_module_1.CircleNestModule,
|
|
63
68
|
conditional_nest_module_1.ConditionalNestModule,
|
|
69
|
+
email_nest_module_1.EmailNestModule,
|
|
64
70
|
events_nest_module_1.EventsNestModule,
|
|
65
71
|
fintech_nest_module_1.FintechNestModule,
|
|
66
72
|
inbestgo_nest_module_1.InbestgoNestModule,
|
|
67
73
|
kira_nest_module_1.KiraNestModule,
|
|
68
74
|
session_nest_module_1.SessionNestModule,
|
|
75
|
+
slack_nest_module_1.SlackNestModule,
|
|
69
76
|
toolbox_nest_module_1.ToolboxNestModule,
|
|
70
77
|
twilio_nest_module_1.TwilioNestModule,
|
|
71
78
|
user_nest_module_1.UserNestModule,
|
|
72
79
|
validation_nest_module_1.ValidationNestModule,
|
|
73
80
|
vcard_nest_module_1.VCardNestModule,
|
|
74
81
|
webhook_nest_module_1.WebhookNestModule,
|
|
75
|
-
slack_nest_module_1.SlackNestModule,
|
|
76
82
|
],
|
|
77
83
|
})
|
|
78
84
|
], WorkflowModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,sEAAiE;AACjE,+EAA0E;AAC1E,4EAAuE;AACvE,2FAAsF;AACtF,4EAAuE;AACvE,+EAA0E;AAC1E,kFAA6E;AAC7E,sEAAiE;AACjE,+EAA0E;AAC1E,+EAA0E;AAC1E,4EAAuE;AACvE,sEAAiE;AACjE,wFAAmF;AACnF,yEAAoE;AACpE,+EAA0E;AAC1E,iEAA4D;
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,sEAAiE;AACjE,+EAA0E;AAC1E,+EAA0E;AAC1E,4EAAuE;AACvE,2FAAsF;AACtF,yEAAoE;AACpE,4EAAuE;AACvE,+EAA0E;AAC1E,kFAA6E;AAC7E,sEAAiE;AACjE,+EAA0E;AAC1E,yEAAoE;AACpE,+EAA0E;AAC1E,4EAAuE;AACvE,sEAAiE;AACjE,wFAAmF;AACnF,yEAAoE;AACpE,+EAA0E;AAC1E,iEAA4D;AAiDrD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IA/C1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,yCAAkB;YAClB,6BAAY;YACZ,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,qCAAgB;YAChB,+CAAqB;YACrB,mCAAe;YACf,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,iCAAc;YACd,uCAAiB;YACjB,mCAAe;YACf,uCAAiB;YACjB,qCAAgB;YAChB,iCAAc;YACd,6CAAoB;YACpB,mCAAe;YACf,uCAAiB;SAClB;QACD,OAAO,EAAE;YACP,yCAAkB;YAClB,6BAAY;YACZ,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,qCAAgB;YAChB,+CAAqB;YACrB,mCAAe;YACf,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,iCAAc;YACd,uCAAiB;YACjB,mCAAe;YACf,uCAAiB;YACjB,qCAAgB;YAChB,iCAAc;YACd,6CAAoB;YACpB,mCAAe;YACf,uCAAiB;SAClB;KACF,CAAC;GACW,cAAc,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,106 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturialstd/workflow",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Workflow Module for Venturial",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"prebuild": "rimraf dist",
|
|
16
|
-
"build": "tsc -p tsconfig.json",
|
|
17
|
-
"prepublishOnly": "npm run build",
|
|
18
|
-
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
-
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
-
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
-
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
-
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
-
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@dataui/crud": "^5.3.4",
|
|
27
|
-
"@dataui/crud-request": "^5.3.4",
|
|
28
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
-
"@keyv/redis": "^4.2.0",
|
|
30
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
-
"@nestjs/common": "^11.0.11",
|
|
32
|
-
"@nestjs/config": "^4.0.0",
|
|
33
|
-
"@nestjs/core": "^11.0.5",
|
|
34
|
-
"@nestjs/jwt": "^11.0.0",
|
|
35
|
-
"@nestjs/passport": "^11.0.5",
|
|
36
|
-
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
-
"@nestjs/swagger": "^11.0.3",
|
|
38
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
39
|
-
"@types/express": "^4.17.25",
|
|
40
|
-
"@types/node": "^20.0.0",
|
|
41
|
-
"@venturialstd/core": "^1.0.16",
|
|
42
|
-
"bcrypt": "^5.1.1",
|
|
43
|
-
"cache-manager": "^6.4.0",
|
|
44
|
-
"class-transformer": "^0.5.1",
|
|
45
|
-
"class-validator": "^0.14.1",
|
|
46
|
-
"dotenv": "^17.2.3",
|
|
47
|
-
"express": "^5.2.1",
|
|
48
|
-
"glob": "^13.0.0",
|
|
49
|
-
"joi": "^17.13.3",
|
|
50
|
-
"jwks-rsa": "^3.1.0",
|
|
51
|
-
"lodash": "^4.17.21",
|
|
52
|
-
"nodemon": "^3.0.0",
|
|
53
|
-
"passport": "^0.7.0",
|
|
54
|
-
"passport-auth0": "^1.4.4",
|
|
55
|
-
"passport-jwt": "^4.0.1",
|
|
56
|
-
"passport-local": "^1.0.0",
|
|
57
|
-
"rxjs": "^7.8.1",
|
|
58
|
-
"ts-node": "^10.9.0",
|
|
59
|
-
"tsconfig-paths": "^4.2.0",
|
|
60
|
-
"typeorm": "^0.3.20",
|
|
61
|
-
"typescript": "^5.9.3",
|
|
62
|
-
"uuid": "^11.0.5",
|
|
63
|
-
"winston": "^3.17.0"
|
|
64
|
-
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"@dataui/crud": "^5.3.4",
|
|
67
|
-
"@dataui/crud-request": "^5.3.4",
|
|
68
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
69
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
70
|
-
"@nestjs/common": "^11.0.11",
|
|
71
|
-
"@nestjs/config": "^4.0.0",
|
|
72
|
-
"@nestjs/core": "^11.0.5",
|
|
73
|
-
"@nestjs/event-emitter": "^3.0.1",
|
|
74
|
-
"@nestjs/jwt": "^11.0.0",
|
|
75
|
-
"@nestjs/passport": "^11.0.5",
|
|
76
|
-
"@nestjs/swagger": "^11.0.3",
|
|
77
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
78
|
-
"@venturialstd/capa": "^0.0.3",
|
|
79
|
-
"@venturialstd/circle": "^0.0.7",
|
|
80
|
-
"@venturialstd/core": "^1.0.16",
|
|
81
|
-
"@venturialstd/
|
|
82
|
-
"@venturialstd/
|
|
83
|
-
"@venturialstd/
|
|
84
|
-
"@venturialstd/
|
|
85
|
-
"@venturialstd/slack": "^0.1.31",
|
|
86
|
-
"@venturialstd/
|
|
87
|
-
"@venturialstd/
|
|
88
|
-
"bcrypt": "^5.1.1",
|
|
89
|
-
"cache-manager": "^6.4.0",
|
|
90
|
-
"class-transformer": "^0.5.1",
|
|
91
|
-
"class-validator": "^0.14.1",
|
|
92
|
-
"jwks-rsa": "^3.1.0",
|
|
93
|
-
"passport": "^0.7.0",
|
|
94
|
-
"passport-auth0": "^1.4.0",
|
|
95
|
-
"passport-jwt": "^4.0.1",
|
|
96
|
-
"passport-local": "^1.0.0",
|
|
97
|
-
"rxjs": "^7.8.1",
|
|
98
|
-
"typeorm": "^0.3.20",
|
|
99
|
-
"uuid": "^11.0.5"
|
|
100
|
-
},
|
|
101
|
-
"dependencies": {
|
|
102
|
-
"@venturialstd/
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/workflow",
|
|
3
|
+
"version": "0.1.116",
|
|
4
|
+
"description": "Workflow Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prebuild": "rimraf dist",
|
|
16
|
+
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@dataui/crud": "^5.3.4",
|
|
27
|
+
"@dataui/crud-request": "^5.3.4",
|
|
28
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
+
"@keyv/redis": "^4.2.0",
|
|
30
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
+
"@nestjs/common": "^11.0.11",
|
|
32
|
+
"@nestjs/config": "^4.0.0",
|
|
33
|
+
"@nestjs/core": "^11.0.5",
|
|
34
|
+
"@nestjs/jwt": "^11.0.0",
|
|
35
|
+
"@nestjs/passport": "^11.0.5",
|
|
36
|
+
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
+
"@nestjs/swagger": "^11.0.3",
|
|
38
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
39
|
+
"@types/express": "^4.17.25",
|
|
40
|
+
"@types/node": "^20.0.0",
|
|
41
|
+
"@venturialstd/core": "^1.0.16",
|
|
42
|
+
"bcrypt": "^5.1.1",
|
|
43
|
+
"cache-manager": "^6.4.0",
|
|
44
|
+
"class-transformer": "^0.5.1",
|
|
45
|
+
"class-validator": "^0.14.1",
|
|
46
|
+
"dotenv": "^17.2.3",
|
|
47
|
+
"express": "^5.2.1",
|
|
48
|
+
"glob": "^13.0.0",
|
|
49
|
+
"joi": "^17.13.3",
|
|
50
|
+
"jwks-rsa": "^3.1.0",
|
|
51
|
+
"lodash": "^4.17.21",
|
|
52
|
+
"nodemon": "^3.0.0",
|
|
53
|
+
"passport": "^0.7.0",
|
|
54
|
+
"passport-auth0": "^1.4.4",
|
|
55
|
+
"passport-jwt": "^4.0.1",
|
|
56
|
+
"passport-local": "^1.0.0",
|
|
57
|
+
"rxjs": "^7.8.1",
|
|
58
|
+
"ts-node": "^10.9.0",
|
|
59
|
+
"tsconfig-paths": "^4.2.0",
|
|
60
|
+
"typeorm": "^0.3.20",
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
|
+
"uuid": "^11.0.5",
|
|
63
|
+
"winston": "^3.17.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@dataui/crud": "^5.3.4",
|
|
67
|
+
"@dataui/crud-request": "^5.3.4",
|
|
68
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
69
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
70
|
+
"@nestjs/common": "^11.0.11",
|
|
71
|
+
"@nestjs/config": "^4.0.0",
|
|
72
|
+
"@nestjs/core": "^11.0.5",
|
|
73
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
74
|
+
"@nestjs/jwt": "^11.0.0",
|
|
75
|
+
"@nestjs/passport": "^11.0.5",
|
|
76
|
+
"@nestjs/swagger": "^11.0.3",
|
|
77
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
78
|
+
"@venturialstd/capa": "^0.0.3",
|
|
79
|
+
"@venturialstd/circle": "^0.0.7",
|
|
80
|
+
"@venturialstd/core": "^1.0.16",
|
|
81
|
+
"@venturialstd/email": "^0.0.2",
|
|
82
|
+
"@venturialstd/fintech": "^0.0.16",
|
|
83
|
+
"@venturialstd/inbestgo": "^0.0.4",
|
|
84
|
+
"@venturialstd/kira": "^0.0.1",
|
|
85
|
+
"@venturialstd/slack": "^0.1.31",
|
|
86
|
+
"@venturialstd/toolbox": "^0.0.1",
|
|
87
|
+
"@venturialstd/twilio": "^0.0.4",
|
|
88
|
+
"bcrypt": "^5.1.1",
|
|
89
|
+
"cache-manager": "^6.4.0",
|
|
90
|
+
"class-transformer": "^0.5.1",
|
|
91
|
+
"class-validator": "^0.14.1",
|
|
92
|
+
"jwks-rsa": "^3.1.0",
|
|
93
|
+
"passport": "^0.7.0",
|
|
94
|
+
"passport-auth0": "^1.4.0",
|
|
95
|
+
"passport-jwt": "^4.0.1",
|
|
96
|
+
"passport-local": "^1.0.0",
|
|
97
|
+
"rxjs": "^7.8.1",
|
|
98
|
+
"typeorm": "^0.3.20",
|
|
99
|
+
"uuid": "^11.0.5"
|
|
100
|
+
},
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"@venturialstd/chatgpt": "^0.0.6",
|
|
103
|
+
"@venturialstd/user": "^0.0.3",
|
|
104
|
+
"libphonenumber-js": "^1.12.34",
|
|
105
|
+
"pg": "^8.16.3"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
|
|
2
|
-
export declare class ChatGptAuthService implements IWorkflowCredentialAuthService {
|
|
3
|
-
authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=chatgpt-auth.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/auth/chatgpt-auth.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAEnF,qBACa,kBAAmB,YAAW,8BAA8B;IACjE,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAqDxF"}
|
|
@@ -1,68 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ChatGptAuthService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const openai_1 = __importDefault(require("openai"));
|
|
15
|
-
let ChatGptAuthService = class ChatGptAuthService {
|
|
16
|
-
async authenticate(credentials) {
|
|
17
|
-
try {
|
|
18
|
-
const apiKey = credentials.apiKey;
|
|
19
|
-
const baseUrl = credentials.baseUrl || 'https://api.openai.com/v1';
|
|
20
|
-
if (!apiKey || apiKey.trim().length === 0) {
|
|
21
|
-
return {
|
|
22
|
-
success: false,
|
|
23
|
-
message: 'API Key is required',
|
|
24
|
-
error: 'MISSING_API_KEY',
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const client = new openai_1.default({
|
|
28
|
-
apiKey,
|
|
29
|
-
baseURL: baseUrl,
|
|
30
|
-
});
|
|
31
|
-
try {
|
|
32
|
-
await client.models.list();
|
|
33
|
-
return {
|
|
34
|
-
success: true,
|
|
35
|
-
message: 'ChatGPT credentials validated successfully',
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
40
|
-
const statusCode = error.statusCode;
|
|
41
|
-
if (statusCode === 401 || statusCode === 403) {
|
|
42
|
-
return {
|
|
43
|
-
success: false,
|
|
44
|
-
message: 'Invalid API Key',
|
|
45
|
-
error: 'INVALID_API_KEY',
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
success: false,
|
|
50
|
-
message: `Failed to validate credentials: ${errorMessage}`,
|
|
51
|
-
error: 'VALIDATION_ERROR',
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (error) {
|
|
56
|
-
return {
|
|
57
|
-
success: false,
|
|
58
|
-
message: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
59
|
-
error: 'AUTH_ERROR',
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.ChatGptAuthService = ChatGptAuthService;
|
|
65
|
-
exports.ChatGptAuthService = ChatGptAuthService = __decorate([
|
|
66
|
-
(0, common_1.Injectable)()
|
|
67
|
-
], ChatGptAuthService);
|
|
68
|
-
//# sourceMappingURL=chatgpt-auth.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/auth/chatgpt-auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA4C;AAC5C,oDAA4B;AAKrB,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,YAAY,CAA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K,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;gBAC1E,KAAK,EAAE,YAAY;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAtDY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAsD9B"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const CHATGPT_COMPLETION_CONSTANTS: {
|
|
2
|
-
readonly SYSTEM_INSTRUCTIONS: "You are a helpful AI assistant. Your responses MUST be in JSON format WITHOUT markdown, just the raw JSON.\n IMPORTANT RULES:\n - Always respond in valid JSON format\n - Do NOT use markdown code blocks (no ```json```)\n - The response must be a JSON object with the following structure:\n - You will ask the user for their name, email, phone, and status.\n - You will then extract the data from the user's response and store it in the \"output\" field.\n - You will then return the JSON object with the \"event\" field set to \"IN_PROGRESS\" and the \"output\" field containing the data.\n - You will ask again till the user fill all the fields.\n - If the user responds with \"END\", you will set the \"event\" field to \"END\" and return the JSON object.\n - If the user responds with something else, you will set the \"event\" field to \"IN_PROGRESS\", ask again the missing fields and return the JSON object.\n - If the user responds correctly all the fields, you will set the \"event\" field to \"END\" and return the JSON object.\n {\n \"event\": \"IN_PROGRESS\" | \"END\",\n \"aiMessage\": \"Your response message here\",\n \"output\": {\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+1234567890\",\n \"status\": \"active\"\n }\n }\n - The \"event\" field indicates conversation state: \"IN_PROGRESS\" for ongoing, \"END\" for completed\n - The \"aiMessage\" field contains your response to the user\n - The \"output\" field contains structured data extracted from the conversation\n - Use placeholder values when data is not available (e.g., \"N/A\", \"pending\", \"unknown\")";
|
|
3
|
-
};
|
|
4
|
-
//# sourceMappingURL=chatgpt-completion.constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-completion.constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/constants/chatgpt-completion.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;CA2B3B,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CHATGPT_COMPLETION_CONSTANTS = void 0;
|
|
4
|
-
exports.CHATGPT_COMPLETION_CONSTANTS = {
|
|
5
|
-
SYSTEM_INSTRUCTIONS: `You are a helpful AI assistant. Your responses MUST be in JSON format WITHOUT markdown, just the raw JSON.
|
|
6
|
-
IMPORTANT RULES:
|
|
7
|
-
- Always respond in valid JSON format
|
|
8
|
-
- Do NOT use markdown code blocks (no \`\`\`json\`\`\`)
|
|
9
|
-
- The response must be a JSON object with the following structure:
|
|
10
|
-
- You will ask the user for their name, email, phone, and status.
|
|
11
|
-
- You will then extract the data from the user's response and store it in the "output" field.
|
|
12
|
-
- You will then return the JSON object with the "event" field set to "IN_PROGRESS" and the "output" field containing the data.
|
|
13
|
-
- You will ask again till the user fill all the fields.
|
|
14
|
-
- If the user responds with "END", you will set the "event" field to "END" and return the JSON object.
|
|
15
|
-
- If the user responds with something else, you will set the "event" field to "IN_PROGRESS", ask again the missing fields and return the JSON object.
|
|
16
|
-
- If the user responds correctly all the fields, you will set the "event" field to "END" and return the JSON object.
|
|
17
|
-
{
|
|
18
|
-
"event": "IN_PROGRESS" | "END",
|
|
19
|
-
"aiMessage": "Your response message here",
|
|
20
|
-
"output": {
|
|
21
|
-
"name": "John Doe",
|
|
22
|
-
"email": "john@example.com",
|
|
23
|
-
"phone": "+1234567890",
|
|
24
|
-
"status": "active"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
- The "event" field indicates conversation state: "IN_PROGRESS" for ongoing, "END" for completed
|
|
28
|
-
- The "aiMessage" field contains your response to the user
|
|
29
|
-
- The "output" field contains structured data extracted from the conversation
|
|
30
|
-
- Use placeholder values when data is not available (e.g., "N/A", "pending", "unknown")`,
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=chatgpt-completion.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-completion.constants.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/constants/chatgpt-completion.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG;IACxC,mBAAmB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;gGAyBuE;CAClF,CAAC"}
|