mcp-paike 1.0.8 → 1.1.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.
@@ -0,0 +1,295 @@
1
+ interface ToolResult {
2
+ content: Array<{
3
+ type: 'text';
4
+ text: string;
5
+ }>;
6
+ isError?: boolean;
7
+ }
8
+ export declare const listLeadsTool: {
9
+ name: string;
10
+ description: string;
11
+ inputSchema: {
12
+ type: "object";
13
+ properties: {
14
+ search: {
15
+ type: string;
16
+ description: string;
17
+ };
18
+ status: {
19
+ type: string;
20
+ enum: string[];
21
+ description: string;
22
+ };
23
+ source: {
24
+ type: string;
25
+ enum: string[];
26
+ description: string;
27
+ };
28
+ priority: {
29
+ type: string;
30
+ enum: string[];
31
+ description: string;
32
+ };
33
+ assignedToId: {
34
+ type: string;
35
+ description: string;
36
+ };
37
+ page: {
38
+ type: string;
39
+ description: string;
40
+ };
41
+ pageSize: {
42
+ type: string;
43
+ description: string;
44
+ };
45
+ };
46
+ required: never[];
47
+ };
48
+ handler: (args: {
49
+ search?: string;
50
+ status?: string;
51
+ source?: string;
52
+ priority?: string;
53
+ assignedToId?: string;
54
+ page?: number;
55
+ pageSize?: number;
56
+ }) => Promise<ToolResult>;
57
+ };
58
+ export declare const getLeadTool: {
59
+ name: string;
60
+ description: string;
61
+ inputSchema: {
62
+ type: "object";
63
+ properties: {
64
+ leadId: {
65
+ type: string;
66
+ description: string;
67
+ };
68
+ };
69
+ required: string[];
70
+ };
71
+ handler: (args: {
72
+ leadId: string;
73
+ }) => Promise<ToolResult>;
74
+ };
75
+ export declare const getLeadStatsTool: {
76
+ name: string;
77
+ description: string;
78
+ inputSchema: {
79
+ type: "object";
80
+ properties: {};
81
+ required: never[];
82
+ };
83
+ handler: () => Promise<ToolResult>;
84
+ };
85
+ export declare const getLeadAnalyticsTool: {
86
+ name: string;
87
+ description: string;
88
+ inputSchema: {
89
+ type: "object";
90
+ properties: {
91
+ startDate: {
92
+ type: string;
93
+ description: string;
94
+ };
95
+ endDate: {
96
+ type: string;
97
+ description: string;
98
+ };
99
+ };
100
+ required: never[];
101
+ };
102
+ handler: (args: {
103
+ startDate?: string;
104
+ endDate?: string;
105
+ }) => Promise<ToolResult>;
106
+ };
107
+ export declare const getPendingFollowupsTool: {
108
+ name: string;
109
+ description: string;
110
+ inputSchema: {
111
+ type: "object";
112
+ properties: {};
113
+ required: never[];
114
+ };
115
+ handler: () => Promise<ToolResult>;
116
+ };
117
+ export declare const listLeadFollowupsTool: {
118
+ name: string;
119
+ description: string;
120
+ inputSchema: {
121
+ type: "object";
122
+ properties: {
123
+ leadId: {
124
+ type: string;
125
+ description: string;
126
+ };
127
+ page: {
128
+ type: string;
129
+ description: string;
130
+ };
131
+ pageSize: {
132
+ type: string;
133
+ description: string;
134
+ };
135
+ };
136
+ required: string[];
137
+ };
138
+ handler: (args: {
139
+ leadId: string;
140
+ page?: number;
141
+ pageSize?: number;
142
+ }) => Promise<ToolResult>;
143
+ };
144
+ export declare const listLeadTrialsTool: {
145
+ name: string;
146
+ description: string;
147
+ inputSchema: {
148
+ type: "object";
149
+ properties: {
150
+ leadId: {
151
+ type: string;
152
+ description: string;
153
+ };
154
+ };
155
+ required: string[];
156
+ };
157
+ handler: (args: {
158
+ leadId: string;
159
+ }) => Promise<ToolResult>;
160
+ };
161
+ export declare const listAssignmentRulesTool: {
162
+ name: string;
163
+ description: string;
164
+ inputSchema: {
165
+ type: "object";
166
+ properties: {};
167
+ required: never[];
168
+ };
169
+ requiredRole: "ADMIN";
170
+ handler: () => Promise<ToolResult>;
171
+ };
172
+ export declare const leadTools: ({
173
+ name: string;
174
+ description: string;
175
+ inputSchema: {
176
+ type: "object";
177
+ properties: {
178
+ search: {
179
+ type: string;
180
+ description: string;
181
+ };
182
+ status: {
183
+ type: string;
184
+ enum: string[];
185
+ description: string;
186
+ };
187
+ source: {
188
+ type: string;
189
+ enum: string[];
190
+ description: string;
191
+ };
192
+ priority: {
193
+ type: string;
194
+ enum: string[];
195
+ description: string;
196
+ };
197
+ assignedToId: {
198
+ type: string;
199
+ description: string;
200
+ };
201
+ page: {
202
+ type: string;
203
+ description: string;
204
+ };
205
+ pageSize: {
206
+ type: string;
207
+ description: string;
208
+ };
209
+ };
210
+ required: never[];
211
+ };
212
+ handler: (args: {
213
+ search?: string;
214
+ status?: string;
215
+ source?: string;
216
+ priority?: string;
217
+ assignedToId?: string;
218
+ page?: number;
219
+ pageSize?: number;
220
+ }) => Promise<ToolResult>;
221
+ } | {
222
+ name: string;
223
+ description: string;
224
+ inputSchema: {
225
+ type: "object";
226
+ properties: {
227
+ leadId: {
228
+ type: string;
229
+ description: string;
230
+ };
231
+ };
232
+ required: string[];
233
+ };
234
+ handler: (args: {
235
+ leadId: string;
236
+ }) => Promise<ToolResult>;
237
+ } | {
238
+ name: string;
239
+ description: string;
240
+ inputSchema: {
241
+ type: "object";
242
+ properties: {};
243
+ required: never[];
244
+ };
245
+ handler: () => Promise<ToolResult>;
246
+ } | {
247
+ name: string;
248
+ description: string;
249
+ inputSchema: {
250
+ type: "object";
251
+ properties: {
252
+ startDate: {
253
+ type: string;
254
+ description: string;
255
+ };
256
+ endDate: {
257
+ type: string;
258
+ description: string;
259
+ };
260
+ };
261
+ required: never[];
262
+ };
263
+ handler: (args: {
264
+ startDate?: string;
265
+ endDate?: string;
266
+ }) => Promise<ToolResult>;
267
+ } | {
268
+ name: string;
269
+ description: string;
270
+ inputSchema: {
271
+ type: "object";
272
+ properties: {
273
+ leadId: {
274
+ type: string;
275
+ description: string;
276
+ };
277
+ page: {
278
+ type: string;
279
+ description: string;
280
+ };
281
+ pageSize: {
282
+ type: string;
283
+ description: string;
284
+ };
285
+ };
286
+ required: string[];
287
+ };
288
+ handler: (args: {
289
+ leadId: string;
290
+ page?: number;
291
+ pageSize?: number;
292
+ }) => Promise<ToolResult>;
293
+ })[];
294
+ export {};
295
+ //# sourceMappingURL=leads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leads.d.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