nexup-mcp-server 1.0.0
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.
Potentially problematic release.
This version of nexup-mcp-server might be problematic. Click here for more details.
- package/README.md +41 -0
- package/dist/client/auth.d.ts +6 -0
- package/dist/client/auth.d.ts.map +1 -0
- package/dist/client/auth.js +14 -0
- package/dist/client/auth.js.map +1 -0
- package/dist/client/http-client.d.ts +33 -0
- package/dist/client/http-client.d.ts.map +1 -0
- package/dist/client/http-client.js +149 -0
- package/dist/client/http-client.js.map +1 -0
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +19 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/crm-resources.d.ts +8 -0
- package/dist/resources/crm-resources.d.ts.map +1 -0
- package/dist/resources/crm-resources.js +501 -0
- package/dist/resources/crm-resources.js.map +1 -0
- package/dist/resources/index.d.ts +2 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +2 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/tools/customers.d.ts +221 -0
- package/dist/tools/customers.d.ts.map +1 -0
- package/dist/tools/customers.js +207 -0
- package/dist/tools/customers.js.map +1 -0
- package/dist/tools/index.d.ts +883 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +38 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/notifications.d.ts +16 -0
- package/dist/tools/notifications.d.ts.map +1 -0
- package/dist/tools/notifications.js +47 -0
- package/dist/tools/notifications.js.map +1 -0
- package/dist/tools/prospects.d.ts +478 -0
- package/dist/tools/prospects.d.ts.map +1 -0
- package/dist/tools/prospects.js +336 -0
- package/dist/tools/prospects.js.map +1 -0
- package/dist/tools/tickets.d.ts +83 -0
- package/dist/tools/tickets.d.ts.map +1 -0
- package/dist/tools/tickets.js +171 -0
- package/dist/tools/tickets.js.map +1 -0
- package/dist/tools/transcripts.d.ts +97 -0
- package/dist/tools/transcripts.d.ts.map +1 -0
- package/dist/tools/transcripts.js +188 -0
- package/dist/tools/transcripts.js.map +1 -0
- package/dist/utils/errors.d.ts +9 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +28 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/formatters.d.ts +5 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +21 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/logger.d.ts +4 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +43 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/validation/schemas.d.ts +424 -0
- package/dist/validation/schemas.d.ts.map +1 -0
- package/dist/validation/schemas.js +114 -0
- package/dist/validation/schemas.js.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMpB,CAAC;AAGF,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CA2BhF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { prospectTools, handleProspectTool } from './prospects.js';
|
|
2
|
+
import { customerTools, handleCustomerTool } from './customers.js';
|
|
3
|
+
import { transcriptTools, handleTranscriptTool } from './transcripts.js';
|
|
4
|
+
import { ticketTools, handleTicketTool } from './tickets.js';
|
|
5
|
+
import { notificationTools, handleNotificationTool } from './notifications.js';
|
|
6
|
+
// Export all tools
|
|
7
|
+
export const allTools = [
|
|
8
|
+
...prospectTools,
|
|
9
|
+
...customerTools,
|
|
10
|
+
...transcriptTools,
|
|
11
|
+
...ticketTools,
|
|
12
|
+
...notificationTools,
|
|
13
|
+
];
|
|
14
|
+
// Tool router
|
|
15
|
+
export async function handleToolCall(toolName, params) {
|
|
16
|
+
// Prospect tools
|
|
17
|
+
if (prospectTools.find(t => t.name === toolName)) {
|
|
18
|
+
return await handleProspectTool(toolName, params);
|
|
19
|
+
}
|
|
20
|
+
// Customer tools
|
|
21
|
+
if (customerTools.find(t => t.name === toolName)) {
|
|
22
|
+
return await handleCustomerTool(toolName, params);
|
|
23
|
+
}
|
|
24
|
+
// Transcript tools
|
|
25
|
+
if (transcriptTools.find(t => t.name === toolName)) {
|
|
26
|
+
return await handleTranscriptTool(toolName, params);
|
|
27
|
+
}
|
|
28
|
+
// Ticket tools
|
|
29
|
+
if (ticketTools.find(t => t.name === toolName)) {
|
|
30
|
+
return await handleTicketTool(toolName, params);
|
|
31
|
+
}
|
|
32
|
+
// Notification tools
|
|
33
|
+
if (notificationTools.find(t => t.name === toolName)) {
|
|
34
|
+
return await handleNotificationTool(toolName, params);
|
|
35
|
+
}
|
|
36
|
+
throw new Error(`Unknown tool: ${toolName}`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,mBAAmB;AACnB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,aAAa;IAChB,GAAG,aAAa;IAChB,GAAG,eAAe;IAClB,GAAG,WAAW;IACd,GAAG,iBAAiB;CACrB,CAAC;AAEF,cAAc;AACd,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,QAAgB,EAAE,MAAW;IAChE,iBAAiB;IACjB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;QACjD,OAAO,MAAM,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB;IACjB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;QACjD,OAAO,MAAM,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,mBAAmB;IACnB,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;QACnD,OAAO,MAAM,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,eAAe;IACf,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;QAC/C,OAAO,MAAM,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,qBAAqB;IACrB,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;QACrD,OAAO,MAAM,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,QAAQ,EAAE,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const notificationTools: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
notificationId: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
required: string[];
|
|
13
|
+
};
|
|
14
|
+
}[];
|
|
15
|
+
export declare function handleNotificationTool(toolName: string, params: any): Promise<any>;
|
|
16
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/tools/notifications.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;GAY7B,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAYxF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { httpClient } from '../client/http-client.js';
|
|
2
|
+
import { logToolCall } from '../utils/logger.js';
|
|
3
|
+
import { formatError } from '../utils/errors.js';
|
|
4
|
+
import { markNotificationCompleteSchema, } from '../validation/schemas.js';
|
|
5
|
+
export const notificationTools = [
|
|
6
|
+
{
|
|
7
|
+
name: 'mark_notification_complete',
|
|
8
|
+
description: 'Mark a notification/reminder as completed. Requires user confirmation before execution.',
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
notificationId: { type: 'string', description: 'Notification ID' },
|
|
13
|
+
},
|
|
14
|
+
required: ['notificationId'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
export async function handleNotificationTool(toolName, params) {
|
|
19
|
+
try {
|
|
20
|
+
switch (toolName) {
|
|
21
|
+
case 'mark_notification_complete':
|
|
22
|
+
return await markNotificationComplete(params);
|
|
23
|
+
default:
|
|
24
|
+
throw new Error(`Unknown notification tool: ${toolName}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
logToolCall(toolName, params, 'error', { error: formatError(error) });
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
async function markNotificationComplete(params) {
|
|
33
|
+
const validated = markNotificationCompleteSchema.parse(params);
|
|
34
|
+
const notification = await httpClient.patch('/api/notifications', { id: validated.notificationId, status: 'read' }, 'mark_notification_complete');
|
|
35
|
+
logToolCall('mark_notification_complete', params, 'success', {
|
|
36
|
+
notificationId: validated.notificationId,
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
content: [
|
|
40
|
+
{
|
|
41
|
+
type: 'text',
|
|
42
|
+
text: `✓ Marked notification as complete: ${notification.title}`,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/tools/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,8BAA8B,GAC/B,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;QACE,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,yFAAyF;QACtG,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE;aACnE;YACD,QAAQ,EAAE,CAAC,gBAAgB,CAAC;SAC7B;KACF;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,QAAgB,EAAE,MAAW;IACxE,IAAI,CAAC;QACH,QAAQ,QAAQ,EAAE,CAAC;YACjB,KAAK,4BAA4B;gBAC/B,OAAO,MAAM,wBAAwB,CAAC,MAAM,CAAC,CAAC;YAChD;gBACE,MAAM,IAAI,KAAK,CAAC,8BAA8B,QAAQ,EAAE,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACtE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,KAAK,UAAU,wBAAwB,CAAC,MAAW;IACjD,MAAM,SAAS,GAAG,8BAA8B,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/D,MAAM,YAAY,GAAG,MAAM,UAAU,CAAC,KAAK,CACzC,oBAAoB,EACpB,EAAE,EAAE,EAAE,SAAS,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,EAChD,4BAA4B,CAC7B,CAAC;IAEF,WAAW,CAAC,4BAA4B,EAAE,MAAM,EAAE,SAAS,EAAE;QAC3D,cAAc,EAAE,SAAS,CAAC,cAAc;KACzC,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,sCAAsC,YAAY,CAAC,KAAK,EAAE;aACjE;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
export declare const prospectTools: ({
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
search: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
status: {
|
|
12
|
+
type: string;
|
|
13
|
+
enum: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
priority: {
|
|
17
|
+
type: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
owner: {
|
|
22
|
+
type: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
companyName?: undefined;
|
|
26
|
+
address?: undefined;
|
|
27
|
+
industry?: undefined;
|
|
28
|
+
website?: undefined;
|
|
29
|
+
eventMetAt?: undefined;
|
|
30
|
+
nextAction?: undefined;
|
|
31
|
+
nextActionDueDate?: undefined;
|
|
32
|
+
notes?: undefined;
|
|
33
|
+
prospectId?: undefined;
|
|
34
|
+
firstName?: undefined;
|
|
35
|
+
lastName?: undefined;
|
|
36
|
+
email?: undefined;
|
|
37
|
+
phone?: undefined;
|
|
38
|
+
role?: undefined;
|
|
39
|
+
isPrimary?: undefined;
|
|
40
|
+
contactId?: undefined;
|
|
41
|
+
type?: undefined;
|
|
42
|
+
date?: undefined;
|
|
43
|
+
summary?: undefined;
|
|
44
|
+
outcome?: undefined;
|
|
45
|
+
contactFirstName?: undefined;
|
|
46
|
+
contactLastName?: undefined;
|
|
47
|
+
contactEmail?: undefined;
|
|
48
|
+
contactPhone?: undefined;
|
|
49
|
+
contactRole?: undefined;
|
|
50
|
+
};
|
|
51
|
+
required: never[];
|
|
52
|
+
};
|
|
53
|
+
} | {
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
inputSchema: {
|
|
57
|
+
type: string;
|
|
58
|
+
properties: {
|
|
59
|
+
companyName: {
|
|
60
|
+
type: string;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
address: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
industry: {
|
|
68
|
+
type: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
website: {
|
|
72
|
+
type: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
priority: {
|
|
76
|
+
type: string;
|
|
77
|
+
enum: string[];
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
status: {
|
|
81
|
+
type: string;
|
|
82
|
+
enum: string[];
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
eventMetAt: {
|
|
86
|
+
type: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
nextAction: {
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
nextActionDueDate: {
|
|
94
|
+
type: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
owner: {
|
|
98
|
+
type: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
notes: {
|
|
102
|
+
type: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
search?: undefined;
|
|
106
|
+
prospectId?: undefined;
|
|
107
|
+
firstName?: undefined;
|
|
108
|
+
lastName?: undefined;
|
|
109
|
+
email?: undefined;
|
|
110
|
+
phone?: undefined;
|
|
111
|
+
role?: undefined;
|
|
112
|
+
isPrimary?: undefined;
|
|
113
|
+
contactId?: undefined;
|
|
114
|
+
type?: undefined;
|
|
115
|
+
date?: undefined;
|
|
116
|
+
summary?: undefined;
|
|
117
|
+
outcome?: undefined;
|
|
118
|
+
contactFirstName?: undefined;
|
|
119
|
+
contactLastName?: undefined;
|
|
120
|
+
contactEmail?: undefined;
|
|
121
|
+
contactPhone?: undefined;
|
|
122
|
+
contactRole?: undefined;
|
|
123
|
+
};
|
|
124
|
+
required: string[];
|
|
125
|
+
};
|
|
126
|
+
} | {
|
|
127
|
+
name: string;
|
|
128
|
+
description: string;
|
|
129
|
+
inputSchema: {
|
|
130
|
+
type: string;
|
|
131
|
+
properties: {
|
|
132
|
+
prospectId: {
|
|
133
|
+
type: string;
|
|
134
|
+
description: string;
|
|
135
|
+
};
|
|
136
|
+
companyName: {
|
|
137
|
+
type: string;
|
|
138
|
+
description: string;
|
|
139
|
+
};
|
|
140
|
+
address: {
|
|
141
|
+
type: string;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
industry: {
|
|
145
|
+
type: string;
|
|
146
|
+
description: string;
|
|
147
|
+
};
|
|
148
|
+
website: {
|
|
149
|
+
type: string;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
priority: {
|
|
153
|
+
type: string;
|
|
154
|
+
enum: string[];
|
|
155
|
+
description: string;
|
|
156
|
+
};
|
|
157
|
+
status: {
|
|
158
|
+
type: string;
|
|
159
|
+
enum: string[];
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
nextAction: {
|
|
163
|
+
type: string;
|
|
164
|
+
description: string;
|
|
165
|
+
};
|
|
166
|
+
nextActionDueDate: {
|
|
167
|
+
type: string;
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
owner: {
|
|
171
|
+
type: string;
|
|
172
|
+
description: string;
|
|
173
|
+
};
|
|
174
|
+
notes: {
|
|
175
|
+
type: string;
|
|
176
|
+
description: string;
|
|
177
|
+
};
|
|
178
|
+
search?: undefined;
|
|
179
|
+
eventMetAt?: undefined;
|
|
180
|
+
firstName?: undefined;
|
|
181
|
+
lastName?: undefined;
|
|
182
|
+
email?: undefined;
|
|
183
|
+
phone?: undefined;
|
|
184
|
+
role?: undefined;
|
|
185
|
+
isPrimary?: undefined;
|
|
186
|
+
contactId?: undefined;
|
|
187
|
+
type?: undefined;
|
|
188
|
+
date?: undefined;
|
|
189
|
+
summary?: undefined;
|
|
190
|
+
outcome?: undefined;
|
|
191
|
+
contactFirstName?: undefined;
|
|
192
|
+
contactLastName?: undefined;
|
|
193
|
+
contactEmail?: undefined;
|
|
194
|
+
contactPhone?: undefined;
|
|
195
|
+
contactRole?: undefined;
|
|
196
|
+
};
|
|
197
|
+
required: string[];
|
|
198
|
+
};
|
|
199
|
+
} | {
|
|
200
|
+
name: string;
|
|
201
|
+
description: string;
|
|
202
|
+
inputSchema: {
|
|
203
|
+
type: string;
|
|
204
|
+
properties: {
|
|
205
|
+
prospectId: {
|
|
206
|
+
type: string;
|
|
207
|
+
description: string;
|
|
208
|
+
};
|
|
209
|
+
firstName: {
|
|
210
|
+
type: string;
|
|
211
|
+
description: string;
|
|
212
|
+
};
|
|
213
|
+
lastName: {
|
|
214
|
+
type: string;
|
|
215
|
+
description: string;
|
|
216
|
+
};
|
|
217
|
+
email: {
|
|
218
|
+
type: string;
|
|
219
|
+
description: string;
|
|
220
|
+
};
|
|
221
|
+
phone: {
|
|
222
|
+
type: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
225
|
+
role: {
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
};
|
|
229
|
+
isPrimary: {
|
|
230
|
+
type: string;
|
|
231
|
+
description: string;
|
|
232
|
+
};
|
|
233
|
+
notes: {
|
|
234
|
+
type: string;
|
|
235
|
+
description: string;
|
|
236
|
+
};
|
|
237
|
+
search?: undefined;
|
|
238
|
+
status?: undefined;
|
|
239
|
+
priority?: undefined;
|
|
240
|
+
owner?: undefined;
|
|
241
|
+
companyName?: undefined;
|
|
242
|
+
address?: undefined;
|
|
243
|
+
industry?: undefined;
|
|
244
|
+
website?: undefined;
|
|
245
|
+
eventMetAt?: undefined;
|
|
246
|
+
nextAction?: undefined;
|
|
247
|
+
nextActionDueDate?: undefined;
|
|
248
|
+
contactId?: undefined;
|
|
249
|
+
type?: undefined;
|
|
250
|
+
date?: undefined;
|
|
251
|
+
summary?: undefined;
|
|
252
|
+
outcome?: undefined;
|
|
253
|
+
contactFirstName?: undefined;
|
|
254
|
+
contactLastName?: undefined;
|
|
255
|
+
contactEmail?: undefined;
|
|
256
|
+
contactPhone?: undefined;
|
|
257
|
+
contactRole?: undefined;
|
|
258
|
+
};
|
|
259
|
+
required: string[];
|
|
260
|
+
};
|
|
261
|
+
} | {
|
|
262
|
+
name: string;
|
|
263
|
+
description: string;
|
|
264
|
+
inputSchema: {
|
|
265
|
+
type: string;
|
|
266
|
+
properties: {
|
|
267
|
+
prospectId: {
|
|
268
|
+
type: string;
|
|
269
|
+
description: string;
|
|
270
|
+
};
|
|
271
|
+
search?: undefined;
|
|
272
|
+
status?: undefined;
|
|
273
|
+
priority?: undefined;
|
|
274
|
+
owner?: undefined;
|
|
275
|
+
companyName?: undefined;
|
|
276
|
+
address?: undefined;
|
|
277
|
+
industry?: undefined;
|
|
278
|
+
website?: undefined;
|
|
279
|
+
eventMetAt?: undefined;
|
|
280
|
+
nextAction?: undefined;
|
|
281
|
+
nextActionDueDate?: undefined;
|
|
282
|
+
notes?: undefined;
|
|
283
|
+
firstName?: undefined;
|
|
284
|
+
lastName?: undefined;
|
|
285
|
+
email?: undefined;
|
|
286
|
+
phone?: undefined;
|
|
287
|
+
role?: undefined;
|
|
288
|
+
isPrimary?: undefined;
|
|
289
|
+
contactId?: undefined;
|
|
290
|
+
type?: undefined;
|
|
291
|
+
date?: undefined;
|
|
292
|
+
summary?: undefined;
|
|
293
|
+
outcome?: undefined;
|
|
294
|
+
contactFirstName?: undefined;
|
|
295
|
+
contactLastName?: undefined;
|
|
296
|
+
contactEmail?: undefined;
|
|
297
|
+
contactPhone?: undefined;
|
|
298
|
+
contactRole?: undefined;
|
|
299
|
+
};
|
|
300
|
+
required: string[];
|
|
301
|
+
};
|
|
302
|
+
} | {
|
|
303
|
+
name: string;
|
|
304
|
+
description: string;
|
|
305
|
+
inputSchema: {
|
|
306
|
+
type: string;
|
|
307
|
+
properties: {
|
|
308
|
+
prospectId: {
|
|
309
|
+
type: string;
|
|
310
|
+
description: string;
|
|
311
|
+
};
|
|
312
|
+
contactId: {
|
|
313
|
+
type: string;
|
|
314
|
+
description: string;
|
|
315
|
+
};
|
|
316
|
+
type: {
|
|
317
|
+
type: string;
|
|
318
|
+
enum: string[];
|
|
319
|
+
description: string;
|
|
320
|
+
};
|
|
321
|
+
date: {
|
|
322
|
+
type: string;
|
|
323
|
+
description: string;
|
|
324
|
+
};
|
|
325
|
+
summary: {
|
|
326
|
+
type: string;
|
|
327
|
+
description: string;
|
|
328
|
+
};
|
|
329
|
+
outcome: {
|
|
330
|
+
type: string;
|
|
331
|
+
enum: string[];
|
|
332
|
+
description: string;
|
|
333
|
+
};
|
|
334
|
+
search?: undefined;
|
|
335
|
+
status?: undefined;
|
|
336
|
+
priority?: undefined;
|
|
337
|
+
owner?: undefined;
|
|
338
|
+
companyName?: undefined;
|
|
339
|
+
address?: undefined;
|
|
340
|
+
industry?: undefined;
|
|
341
|
+
website?: undefined;
|
|
342
|
+
eventMetAt?: undefined;
|
|
343
|
+
nextAction?: undefined;
|
|
344
|
+
nextActionDueDate?: undefined;
|
|
345
|
+
notes?: undefined;
|
|
346
|
+
firstName?: undefined;
|
|
347
|
+
lastName?: undefined;
|
|
348
|
+
email?: undefined;
|
|
349
|
+
phone?: undefined;
|
|
350
|
+
role?: undefined;
|
|
351
|
+
isPrimary?: undefined;
|
|
352
|
+
contactFirstName?: undefined;
|
|
353
|
+
contactLastName?: undefined;
|
|
354
|
+
contactEmail?: undefined;
|
|
355
|
+
contactPhone?: undefined;
|
|
356
|
+
contactRole?: undefined;
|
|
357
|
+
};
|
|
358
|
+
required: string[];
|
|
359
|
+
};
|
|
360
|
+
} | {
|
|
361
|
+
name: string;
|
|
362
|
+
description: string;
|
|
363
|
+
inputSchema: {
|
|
364
|
+
type: string;
|
|
365
|
+
properties: {
|
|
366
|
+
prospectId: {
|
|
367
|
+
type: string;
|
|
368
|
+
description: string;
|
|
369
|
+
};
|
|
370
|
+
search?: undefined;
|
|
371
|
+
status?: undefined;
|
|
372
|
+
priority?: undefined;
|
|
373
|
+
owner?: undefined;
|
|
374
|
+
companyName?: undefined;
|
|
375
|
+
address?: undefined;
|
|
376
|
+
industry?: undefined;
|
|
377
|
+
website?: undefined;
|
|
378
|
+
eventMetAt?: undefined;
|
|
379
|
+
nextAction?: undefined;
|
|
380
|
+
nextActionDueDate?: undefined;
|
|
381
|
+
notes?: undefined;
|
|
382
|
+
firstName?: undefined;
|
|
383
|
+
lastName?: undefined;
|
|
384
|
+
email?: undefined;
|
|
385
|
+
phone?: undefined;
|
|
386
|
+
role?: undefined;
|
|
387
|
+
isPrimary?: undefined;
|
|
388
|
+
contactId?: undefined;
|
|
389
|
+
type?: undefined;
|
|
390
|
+
date?: undefined;
|
|
391
|
+
summary?: undefined;
|
|
392
|
+
outcome?: undefined;
|
|
393
|
+
contactFirstName?: undefined;
|
|
394
|
+
contactLastName?: undefined;
|
|
395
|
+
contactEmail?: undefined;
|
|
396
|
+
contactPhone?: undefined;
|
|
397
|
+
contactRole?: undefined;
|
|
398
|
+
};
|
|
399
|
+
required?: undefined;
|
|
400
|
+
};
|
|
401
|
+
} | {
|
|
402
|
+
name: string;
|
|
403
|
+
description: string;
|
|
404
|
+
inputSchema: {
|
|
405
|
+
type: string;
|
|
406
|
+
properties: {
|
|
407
|
+
companyName: {
|
|
408
|
+
type: string;
|
|
409
|
+
description: string;
|
|
410
|
+
};
|
|
411
|
+
address: {
|
|
412
|
+
type: string;
|
|
413
|
+
description: string;
|
|
414
|
+
};
|
|
415
|
+
industry: {
|
|
416
|
+
type: string;
|
|
417
|
+
description: string;
|
|
418
|
+
};
|
|
419
|
+
website: {
|
|
420
|
+
type: string;
|
|
421
|
+
description: string;
|
|
422
|
+
};
|
|
423
|
+
priority: {
|
|
424
|
+
type: string;
|
|
425
|
+
enum: string[];
|
|
426
|
+
description: string;
|
|
427
|
+
};
|
|
428
|
+
eventMetAt: {
|
|
429
|
+
type: string;
|
|
430
|
+
description: string;
|
|
431
|
+
};
|
|
432
|
+
notes: {
|
|
433
|
+
type: string;
|
|
434
|
+
description: string;
|
|
435
|
+
};
|
|
436
|
+
contactFirstName: {
|
|
437
|
+
type: string;
|
|
438
|
+
description: string;
|
|
439
|
+
};
|
|
440
|
+
contactLastName: {
|
|
441
|
+
type: string;
|
|
442
|
+
description: string;
|
|
443
|
+
};
|
|
444
|
+
contactEmail: {
|
|
445
|
+
type: string;
|
|
446
|
+
description: string;
|
|
447
|
+
};
|
|
448
|
+
contactPhone: {
|
|
449
|
+
type: string;
|
|
450
|
+
description: string;
|
|
451
|
+
};
|
|
452
|
+
contactRole: {
|
|
453
|
+
type: string;
|
|
454
|
+
description: string;
|
|
455
|
+
};
|
|
456
|
+
search?: undefined;
|
|
457
|
+
status?: undefined;
|
|
458
|
+
owner?: undefined;
|
|
459
|
+
nextAction?: undefined;
|
|
460
|
+
nextActionDueDate?: undefined;
|
|
461
|
+
prospectId?: undefined;
|
|
462
|
+
firstName?: undefined;
|
|
463
|
+
lastName?: undefined;
|
|
464
|
+
email?: undefined;
|
|
465
|
+
phone?: undefined;
|
|
466
|
+
role?: undefined;
|
|
467
|
+
isPrimary?: undefined;
|
|
468
|
+
contactId?: undefined;
|
|
469
|
+
type?: undefined;
|
|
470
|
+
date?: undefined;
|
|
471
|
+
summary?: undefined;
|
|
472
|
+
outcome?: undefined;
|
|
473
|
+
};
|
|
474
|
+
required: string[];
|
|
475
|
+
};
|
|
476
|
+
})[];
|
|
477
|
+
export declare function handleProspectTool(toolName: string, params: any): Promise<any>;
|
|
478
|
+
//# sourceMappingURL=prospects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prospects.d.ts","sourceRoot":"","sources":["../../src/tools/prospects.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsIzB,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CA0BpF"}
|