Ajustes de Mensagens e Documentação #93

Merged
arenasio merged 6 commits from master into master 2019-05-12 12:49:27 +00:00
7 changed files with 32 additions and 9 deletions

19
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"option": "watch",
"problemMatcher": [
"$tsc-watch"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View file

@ -36,7 +36,6 @@
'use strict'; 'use strict';
import { import {
AutoIncrement, AutoIncrement,
BelongsTo, BelongsTo,

View file

@ -486,7 +486,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
} catch (error) { } catch (error) {
reject(error); reject(error);
} }
}, 20000); }, 60000);
}); });
} }

View file

@ -141,7 +141,7 @@ export class GBConversationalService implements IGBConversationalService {
GBLog.info(`NLP called: ${intent} ${firstEntity}`); GBLog.info(`NLP called: ${intent} ${firstEntity}`);
try { try {
await step.replaceDialog(` /${intent}`, nlp.entities); await step.replaceDialog(`/${intent}`, nlp.entities);
return Promise.resolve(true); return Promise.resolve(true);
} catch (error) { } catch (error) {

View file

@ -5719,7 +5719,8 @@
}, },
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true "bundled": true,
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
@ -6084,7 +6085,8 @@
}, },
"safe-buffer": { "safe-buffer": {
"version": "5.1.1", "version": "5.1.1",
"bundled": true "bundled": true,
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
@ -6132,6 +6134,7 @@
"strip-ansi": { "strip-ansi": {
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
@ -6170,11 +6173,13 @@
}, },
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true "bundled": true,
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.2", "version": "3.0.2",
"bundled": true "bundled": true,
"optional": true
} }
} }
}, },

View file

@ -86,6 +86,7 @@ export class KBService {
public static getSubjectItemsSeparatedBySpaces(subjects: GuaribasSubject[]) { public static getSubjectItemsSeparatedBySpaces(subjects: GuaribasSubject[]) {
const out = []; const out = [];
if (subjects === undefined) { return ''; }
subjects.forEach(subject => { subjects.forEach(subject => {
out.push(subject.internalId); out.push(subject.internalId);
}); });
@ -168,7 +169,7 @@ export class KBService {
query = `${query} ${text}`; query = `${query} ${text}`;
} }
} }
query = `${query}&$filter=instanceId eq ${instance.instanceId}`; // TODO: query = `${query}&$filter=instanceId eq ${instance.instanceId}`;
// tslint:disable:no-unsafe-any // tslint:disable:no-unsafe-any
if (instance.searchKey !== null && GBConfigService.get('STORAGE_DIALECT') === 'mssql') { if (instance.searchKey !== null && GBConfigService.get('STORAGE_DIALECT') === 'mssql') {

View file

@ -36,7 +36,6 @@
'use strict'; 'use strict';
import { import {
AutoIncrement, AutoIncrement,
BelongsTo, BelongsTo,