@scout9/app 1.0.0-alpha.0.1.91 → 1.0.0-alpha.0.1.93
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/dist/{exports-212ef6be.cjs → exports-83755281.cjs} +511 -23
- package/dist/index.cjs +111 -2
- package/dist/{multipart-parser-54a3ab5f.cjs → multipart-parser-af15f044.cjs} +2 -2
- package/dist/{spirits-3b603262.cjs → spirits-32395ac4.cjs} +125 -86
- package/dist/spirits.cjs +1 -1
- package/dist/testing-tools.cjs +2 -2
- package/package.json +2 -2
- package/src/core/config/agents.js +1 -1
- package/src/exports.js +1 -0
- package/src/runtime/client/utils.js +1 -0
- package/src/runtime/client/workflow.js +82 -24
- package/src/runtime/index.js +1 -0
- package/src/runtime/macros/builder.js +43 -0
- package/src/runtime/macros/event.js +234 -0
- package/src/runtime/macros/globals.js +14 -0
- package/src/runtime/macros/index.js +3 -0
- package/src/runtime/macros/schemas.js +12 -0
- package/src/runtime/macros/utils.js +31 -0
- package/src/testing-tools/spirits.js +447 -407
- package/src/utils/configs/agents.js +1 -1
- package/types/index.d.ts +18426 -332
- package/types/index.d.ts.map +9 -2
|
@@ -16,7 +16,7 @@ export function validateAgentConfig(agents) {
|
|
|
16
16
|
}
|
|
17
17
|
if (!agent.programmablePhoneNumber) {
|
|
18
18
|
const userName = agent.firstName ? `${agent.firstName}${agent.lastName ? ' ' + agent.lastName : ''}` : agent.forwardPhone;
|
|
19
|
-
cb(`⚠️${colors.yellow('Warning')}: ${userName} does not have a masked phone number to do auto replies
|
|
19
|
+
cb(`⚠️${colors.yellow('Warning')}: ${userName} does not have a masked phone number to do auto replies.\nYou can register one at ${colors.cyan('https://scout9.com/b')} under ${colors.green('users')} > ${colors.green(userName)}. Then run ${colors.cyan('scout9 sync')} to update.`);
|
|
20
20
|
}
|
|
21
21
|
if (agent.forwardPhone && agents.filter(a => a.forwardPhone && (a.forwardPhone === agent.forwardPhone)).length > 1) {
|
|
22
22
|
throw new Error(`src/entities/agents.js|ts: ".forwardPhone: ${agent.forwardPhone}" can only be associated to one agent within your project`);
|