@forumviriumhelsinki/podio-mcp 2.3.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.
- package/LICENSE +21 -0
- package/README.md +491 -0
- package/build/__tests__/integration/setup.integration.d.ts +104 -0
- package/build/__tests__/integration/setup.integration.d.ts.map +1 -0
- package/build/__tests__/integration/setup.integration.js +233 -0
- package/build/__tests__/integration/setup.integration.js.map +1 -0
- package/build/__tests__/mock-data/items-mock-data.d.ts +168 -0
- package/build/__tests__/mock-data/items-mock-data.d.ts.map +1 -0
- package/build/__tests__/mock-data/items-mock-data.js +370 -0
- package/build/__tests__/mock-data/items-mock-data.js.map +1 -0
- package/build/__tests__/mock-data/notification-mock-data.d.ts +55 -0
- package/build/__tests__/mock-data/notification-mock-data.d.ts.map +1 -0
- package/build/__tests__/mock-data/notification-mock-data.js +190 -0
- package/build/__tests__/mock-data/notification-mock-data.js.map +1 -0
- package/build/__tests__/mock-data/project-epic-mock-data.d.ts +45 -0
- package/build/__tests__/mock-data/project-epic-mock-data.d.ts.map +1 -0
- package/build/__tests__/mock-data/project-epic-mock-data.js +85 -0
- package/build/__tests__/mock-data/project-epic-mock-data.js.map +1 -0
- package/build/__tests__/mock-data/tasks-mock-data.d.ts +27 -0
- package/build/__tests__/mock-data/tasks-mock-data.d.ts.map +1 -0
- package/build/__tests__/mock-data/tasks-mock-data.js +104 -0
- package/build/__tests__/mock-data/tasks-mock-data.js.map +1 -0
- package/build/__tests__/mock-data/utility-mock-data.d.ts +19 -0
- package/build/__tests__/mock-data/utility-mock-data.d.ts.map +1 -0
- package/build/__tests__/mock-data/utility-mock-data.js +165 -0
- package/build/__tests__/mock-data/utility-mock-data.js.map +1 -0
- package/build/__tests__/setup.d.ts +8 -0
- package/build/__tests__/setup.d.ts.map +1 -0
- package/build/__tests__/setup.js +31 -0
- package/build/__tests__/setup.js.map +1 -0
- package/build/__tests__/utils/test-helpers.d.ts +110 -0
- package/build/__tests__/utils/test-helpers.d.ts.map +1 -0
- package/build/__tests__/utils/test-helpers.js +222 -0
- package/build/__tests__/utils/test-helpers.js.map +1 -0
- package/build/api/podio-api-client.d.ts +364 -0
- package/build/api/podio-api-client.d.ts.map +1 -0
- package/build/api/podio-api-client.js +696 -0
- package/build/api/podio-api-client.js.map +1 -0
- package/build/cache/app-cache.d.ts +77 -0
- package/build/cache/app-cache.d.ts.map +1 -0
- package/build/cache/app-cache.js +230 -0
- package/build/cache/app-cache.js.map +1 -0
- package/build/cache/base-cache-manager.d.ts +149 -0
- package/build/cache/base-cache-manager.d.ts.map +1 -0
- package/build/cache/base-cache-manager.js +312 -0
- package/build/cache/base-cache-manager.js.map +1 -0
- package/build/cache/cache-manager.d.ts +230 -0
- package/build/cache/cache-manager.d.ts.map +1 -0
- package/build/cache/cache-manager.js +362 -0
- package/build/cache/cache-manager.js.map +1 -0
- package/build/cache/cache-test.d.ts +9 -0
- package/build/cache/cache-test.d.ts.map +1 -0
- package/build/cache/cache-test.js +169 -0
- package/build/cache/cache-test.js.map +1 -0
- package/build/cache/index.d.ts +18 -0
- package/build/cache/index.d.ts.map +1 -0
- package/build/cache/index.js +20 -0
- package/build/cache/index.js.map +1 -0
- package/build/cache/migration-helper.d.ts +44 -0
- package/build/cache/migration-helper.d.ts.map +1 -0
- package/build/cache/migration-helper.js +235 -0
- package/build/cache/migration-helper.js.map +1 -0
- package/build/cache/project-epic-cache.d.ts +108 -0
- package/build/cache/project-epic-cache.d.ts.map +1 -0
- package/build/cache/project-epic-cache.js +278 -0
- package/build/cache/project-epic-cache.js.map +1 -0
- package/build/cache/space-members-cache.d.ts +99 -0
- package/build/cache/space-members-cache.d.ts.map +1 -0
- package/build/cache/space-members-cache.js +305 -0
- package/build/cache/space-members-cache.js.map +1 -0
- package/build/cache/storage-adapters.d.ts +100 -0
- package/build/cache/storage-adapters.d.ts.map +1 -0
- package/build/cache/storage-adapters.js +297 -0
- package/build/cache/storage-adapters.js.map +1 -0
- package/build/errors/api-errors.d.ts +52 -0
- package/build/errors/api-errors.d.ts.map +1 -0
- package/build/errors/api-errors.js +86 -0
- package/build/errors/api-errors.js.map +1 -0
- package/build/errors/auth-errors.d.ts +67 -0
- package/build/errors/auth-errors.d.ts.map +1 -0
- package/build/errors/auth-errors.js +114 -0
- package/build/errors/auth-errors.js.map +1 -0
- package/build/errors/base.d.ts +102 -0
- package/build/errors/base.d.ts.map +1 -0
- package/build/errors/base.js +131 -0
- package/build/errors/base.js.map +1 -0
- package/build/errors/cache-errors.d.ts +53 -0
- package/build/errors/cache-errors.d.ts.map +1 -0
- package/build/errors/cache-errors.js +83 -0
- package/build/errors/cache-errors.js.map +1 -0
- package/build/errors/config-errors.d.ts +58 -0
- package/build/errors/config-errors.d.ts.map +1 -0
- package/build/errors/config-errors.js +96 -0
- package/build/errors/config-errors.js.map +1 -0
- package/build/errors/index.d.ts +101 -0
- package/build/errors/index.d.ts.map +1 -0
- package/build/errors/index.js +135 -0
- package/build/errors/index.js.map +1 -0
- package/build/errors/structure-errors.d.ts +89 -0
- package/build/errors/structure-errors.d.ts.map +1 -0
- package/build/errors/structure-errors.js +182 -0
- package/build/errors/structure-errors.js.map +1 -0
- package/build/errors/validation-errors.d.ts +81 -0
- package/build/errors/validation-errors.d.ts.map +1 -0
- package/build/errors/validation-errors.js +169 -0
- package/build/errors/validation-errors.js.map +1 -0
- package/build/fields/field-mapper.d.ts +245 -0
- package/build/fields/field-mapper.d.ts.map +1 -0
- package/build/fields/field-mapper.js +404 -0
- package/build/fields/field-mapper.js.map +1 -0
- package/build/index.d.ts +550 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +1527 -0
- package/build/index.js.map +1 -0
- package/build/oauth-helper.d.ts +189 -0
- package/build/oauth-helper.d.ts.map +1 -0
- package/build/oauth-helper.js +422 -0
- package/build/oauth-helper.js.map +1 -0
- package/build/services/app-structure-service.d.ts +49 -0
- package/build/services/app-structure-service.d.ts.map +1 -0
- package/build/services/app-structure-service.js +122 -0
- package/build/services/app-structure-service.js.map +1 -0
- package/build/services/code-execution-service.d.ts +88 -0
- package/build/services/code-execution-service.d.ts.map +1 -0
- package/build/services/code-execution-service.js +342 -0
- package/build/services/code-execution-service.js.map +1 -0
- package/build/services/comment-service.d.ts +66 -0
- package/build/services/comment-service.d.ts.map +1 -0
- package/build/services/comment-service.js +139 -0
- package/build/services/comment-service.js.map +1 -0
- package/build/services/index.d.ts +16 -0
- package/build/services/index.d.ts.map +1 -0
- package/build/services/index.js +15 -0
- package/build/services/index.js.map +1 -0
- package/build/services/item-service.d.ts +104 -0
- package/build/services/item-service.d.ts.map +1 -0
- package/build/services/item-service.js +368 -0
- package/build/services/item-service.js.map +1 -0
- package/build/services/notification-service.d.ts +125 -0
- package/build/services/notification-service.d.ts.map +1 -0
- package/build/services/notification-service.js +321 -0
- package/build/services/notification-service.js.map +1 -0
- package/build/services/project-epic-service.d.ts +73 -0
- package/build/services/project-epic-service.d.ts.map +1 -0
- package/build/services/project-epic-service.js +248 -0
- package/build/services/project-epic-service.js.map +1 -0
- package/build/services/response-formatter.d.ts +190 -0
- package/build/services/response-formatter.d.ts.map +1 -0
- package/build/services/response-formatter.js +1221 -0
- package/build/services/response-formatter.js.map +1 -0
- package/build/services/search-service.d.ts +103 -0
- package/build/services/search-service.d.ts.map +1 -0
- package/build/services/search-service.js +273 -0
- package/build/services/search-service.js.map +1 -0
- package/build/services/task-service.d.ts +70 -0
- package/build/services/task-service.d.ts.map +1 -0
- package/build/services/task-service.js +156 -0
- package/build/services/task-service.js.map +1 -0
- package/build/tools/index.d.ts +8 -0
- package/build/tools/index.d.ts.map +1 -0
- package/build/tools/index.js +8 -0
- package/build/tools/index.js.map +1 -0
- package/build/tools/tool-definitions.d.ts +89 -0
- package/build/tools/tool-definitions.d.ts.map +1 -0
- package/build/tools/tool-definitions.js +1167 -0
- package/build/tools/tool-definitions.js.map +1 -0
- package/build/types/api-types.d.ts +106 -0
- package/build/types/api-types.d.ts.map +1 -0
- package/build/types/api-types.js +11 -0
- package/build/types/api-types.js.map +1 -0
- package/build/types/cache-types.d.ts +52 -0
- package/build/types/cache-types.d.ts.map +1 -0
- package/build/types/cache-types.js +12 -0
- package/build/types/cache-types.js.map +1 -0
- package/build/types/index.d.ts +31 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/index.js +25 -0
- package/build/types/index.js.map +1 -0
- package/build/types/notification-types.d.ts +154 -0
- package/build/types/notification-types.d.ts.map +1 -0
- package/build/types/notification-types.js +7 -0
- package/build/types/notification-types.js.map +1 -0
- package/build/types/podio-types.d.ts +250 -0
- package/build/types/podio-types.d.ts.map +1 -0
- package/build/types/podio-types.js +11 -0
- package/build/types/podio-types.js.map +1 -0
- package/build/types/search-types.d.ts +188 -0
- package/build/types/search-types.d.ts.map +1 -0
- package/build/types/search-types.js +43 -0
- package/build/types/search-types.js.map +1 -0
- package/build/utils/debug.d.ts +58 -0
- package/build/utils/debug.d.ts.map +1 -0
- package/build/utils/debug.js +147 -0
- package/build/utils/debug.js.map +1 -0
- package/examples/claude-config-example.json +13 -0
- package/package.json +87 -0
- package/scripts/generate-claude-config.js +107 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Podio-specific data model types and interfaces.
|
|
3
|
+
*
|
|
4
|
+
* This module contains all TypeScript interfaces that represent
|
|
5
|
+
* core Podio entities such as items, fields, tasks, and users.
|
|
6
|
+
* These types mirror the structure returned by the Podio API.
|
|
7
|
+
*
|
|
8
|
+
* @module PodioTypes
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Represents a Podio item - the core data entity in Podio.
|
|
12
|
+
*
|
|
13
|
+
* Items are records within Podio apps that contain structured data
|
|
14
|
+
* through fields. Each item has a unique identifier and contains
|
|
15
|
+
* an array of fields with typed values.
|
|
16
|
+
*
|
|
17
|
+
* @interface PodioItem
|
|
18
|
+
*/
|
|
19
|
+
export interface PodioItem {
|
|
20
|
+
/** Unique identifier for the item */
|
|
21
|
+
item_id: number;
|
|
22
|
+
/** Optional title of the item (may be extracted from title field) */
|
|
23
|
+
title?: string;
|
|
24
|
+
/** Array of fields containing the item's data */
|
|
25
|
+
fields: PodioField[];
|
|
26
|
+
/** Direct URL link to the item in Podio web interface */
|
|
27
|
+
link: string;
|
|
28
|
+
/** Optional external identifier for the item */
|
|
29
|
+
external_id?: string;
|
|
30
|
+
/** ISO 8601 timestamp when the item was created */
|
|
31
|
+
created_on: string;
|
|
32
|
+
/** App-specific item ID */
|
|
33
|
+
app_item_id: number;
|
|
34
|
+
/** Formatted app item ID for display */
|
|
35
|
+
app_item_id_formatted: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Represents a field within a Podio item.
|
|
39
|
+
*
|
|
40
|
+
* Fields are the structured data containers within Podio items.
|
|
41
|
+
* Each field has a specific type (text, category, contact, etc.) and configuration.
|
|
42
|
+
*
|
|
43
|
+
* @interface PodioField
|
|
44
|
+
*/
|
|
45
|
+
export interface PodioField {
|
|
46
|
+
/** Unique identifier for the field */
|
|
47
|
+
field_id: number;
|
|
48
|
+
/** Optional external identifier for easier field mapping */
|
|
49
|
+
external_id?: string;
|
|
50
|
+
/** Human-readable label for the field */
|
|
51
|
+
label: string;
|
|
52
|
+
/** Type of field (text, category, contact, app, etc.) */
|
|
53
|
+
type: string;
|
|
54
|
+
/** Array of values stored in this field */
|
|
55
|
+
values: any[];
|
|
56
|
+
/** Optional configuration object specific to the field type */
|
|
57
|
+
config?: any;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Represents a Podio task.
|
|
61
|
+
*
|
|
62
|
+
* Tasks in Podio can be standalone or attached to items.
|
|
63
|
+
* They support assignment, due dates, and completion tracking.
|
|
64
|
+
*
|
|
65
|
+
* @interface PodioTask
|
|
66
|
+
*/
|
|
67
|
+
export interface PodioTask {
|
|
68
|
+
/** Unique identifier for the task */
|
|
69
|
+
task_id: number;
|
|
70
|
+
/** Title/text content of the task */
|
|
71
|
+
text: string;
|
|
72
|
+
/** Optional detailed description of the task */
|
|
73
|
+
description?: string;
|
|
74
|
+
/** Current status of the task (active, completed, etc.) */
|
|
75
|
+
status: string;
|
|
76
|
+
/** Optional due date in ISO 8601 format */
|
|
77
|
+
due_date?: string;
|
|
78
|
+
/** Direct URL link to the task in Podio web interface */
|
|
79
|
+
link: string;
|
|
80
|
+
/** ISO 8601 timestamp when the task was created */
|
|
81
|
+
created_on: string;
|
|
82
|
+
/** Optional responsible person/user assigned to the task */
|
|
83
|
+
responsible?: any;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Represents a space member from Podio API.
|
|
87
|
+
*
|
|
88
|
+
* Used for resolving user assignments by name or email.
|
|
89
|
+
*
|
|
90
|
+
* @interface SpaceMember
|
|
91
|
+
*/
|
|
92
|
+
export interface SpaceMember {
|
|
93
|
+
/** User profile information */
|
|
94
|
+
user: {
|
|
95
|
+
/** Unique user ID */
|
|
96
|
+
user_id: number;
|
|
97
|
+
/** User's name */
|
|
98
|
+
name: string;
|
|
99
|
+
/** User's email address */
|
|
100
|
+
mail: string;
|
|
101
|
+
/** User's avatar URL */
|
|
102
|
+
avatar?: string;
|
|
103
|
+
};
|
|
104
|
+
/** Whether the user is an employee */
|
|
105
|
+
employee: boolean;
|
|
106
|
+
/** User's role in the space */
|
|
107
|
+
role: string;
|
|
108
|
+
/** Number of grants */
|
|
109
|
+
grants: number;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Represents a project or epic item from referenced apps.
|
|
113
|
+
*
|
|
114
|
+
* Used for caching and suggestion functionality when working with
|
|
115
|
+
* project and epic fields in the main app.
|
|
116
|
+
*
|
|
117
|
+
* @interface ProjectOrEpicItem
|
|
118
|
+
*/
|
|
119
|
+
export interface ProjectOrEpicItem {
|
|
120
|
+
/** Unique identifier for the project/epic item */
|
|
121
|
+
item_id: number;
|
|
122
|
+
/** Title of the project/epic */
|
|
123
|
+
title: string;
|
|
124
|
+
/** Optional description of the project/epic */
|
|
125
|
+
description?: string;
|
|
126
|
+
/** Labels/tags for categorization and matching */
|
|
127
|
+
labels?: string[];
|
|
128
|
+
/** Status of the project/epic */
|
|
129
|
+
status?: string;
|
|
130
|
+
/** Any additional metadata fields */
|
|
131
|
+
metadata?: Record<string, any>;
|
|
132
|
+
/** Information about the app this project/epic belongs to */
|
|
133
|
+
app: {
|
|
134
|
+
/** ID of the source app */
|
|
135
|
+
app_id: number;
|
|
136
|
+
/** Name of the source app */
|
|
137
|
+
name: string;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Represents a Podio comment on an item or other object.
|
|
142
|
+
*
|
|
143
|
+
* Comments allow users to add text-based feedback and notes
|
|
144
|
+
* to Podio items, tasks, and other objects.
|
|
145
|
+
*
|
|
146
|
+
* @interface PodioComment
|
|
147
|
+
*/
|
|
148
|
+
export interface PodioComment {
|
|
149
|
+
/** Unique identifier for the comment */
|
|
150
|
+
comment_id: number;
|
|
151
|
+
/** Text content of the comment */
|
|
152
|
+
text: string;
|
|
153
|
+
/** ISO 8601 timestamp when the comment was created */
|
|
154
|
+
created_on: string;
|
|
155
|
+
/** User who created the comment */
|
|
156
|
+
created_by: {
|
|
157
|
+
/** User ID */
|
|
158
|
+
user_id: number;
|
|
159
|
+
/** User's display name */
|
|
160
|
+
name: string;
|
|
161
|
+
/** User's email */
|
|
162
|
+
mail: string;
|
|
163
|
+
/** User's avatar URL */
|
|
164
|
+
avatar?: string;
|
|
165
|
+
};
|
|
166
|
+
/** Type of object this comment is attached to (e.g., 'item', 'task') */
|
|
167
|
+
ref_type: string;
|
|
168
|
+
/** ID of the object this comment is attached to */
|
|
169
|
+
ref_id: number;
|
|
170
|
+
/** Direct URL link to the comment */
|
|
171
|
+
link?: string;
|
|
172
|
+
/** Optional rich text formatting information */
|
|
173
|
+
rich?: any;
|
|
174
|
+
/** Optional files attached to the comment */
|
|
175
|
+
files?: any[];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Represents a revision/activity entry for a Podio item.
|
|
179
|
+
*
|
|
180
|
+
* Item revisions track the history of changes made to an item,
|
|
181
|
+
* including field updates, status changes, and other modifications.
|
|
182
|
+
*
|
|
183
|
+
* @interface PodioItemRevision
|
|
184
|
+
*/
|
|
185
|
+
export interface PodioItemRevision {
|
|
186
|
+
/** Revision number (incremental) */
|
|
187
|
+
revision: number;
|
|
188
|
+
/** ISO 8601 timestamp when this revision was created */
|
|
189
|
+
created_on: string;
|
|
190
|
+
/** User who made the changes */
|
|
191
|
+
created_by: {
|
|
192
|
+
/** User ID */
|
|
193
|
+
user_id: number;
|
|
194
|
+
/** User's display name */
|
|
195
|
+
name: string;
|
|
196
|
+
/** User's email */
|
|
197
|
+
mail: string;
|
|
198
|
+
/** User's avatar URL */
|
|
199
|
+
avatar?: string;
|
|
200
|
+
};
|
|
201
|
+
/** Type of revision (created, updated, commented, etc.) */
|
|
202
|
+
type: string;
|
|
203
|
+
/** Array of specific field changes in this revision */
|
|
204
|
+
changes?: PodioItemRevisionChange[];
|
|
205
|
+
/** Optional message or description for the revision */
|
|
206
|
+
message?: string;
|
|
207
|
+
/** Direct URL link to this revision */
|
|
208
|
+
link?: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Represents a specific field change within an item revision.
|
|
212
|
+
*
|
|
213
|
+
* Tracks what fields were modified and their before/after values.
|
|
214
|
+
*
|
|
215
|
+
* @interface PodioItemRevisionChange
|
|
216
|
+
*/
|
|
217
|
+
export interface PodioItemRevisionChange {
|
|
218
|
+
/** ID of the field that was changed */
|
|
219
|
+
field_id: number;
|
|
220
|
+
/** External ID of the field (if available) */
|
|
221
|
+
external_id?: string;
|
|
222
|
+
/** Human-readable label of the field */
|
|
223
|
+
label: string;
|
|
224
|
+
/** Type of field (text, category, etc.) */
|
|
225
|
+
type: string;
|
|
226
|
+
/** Previous value(s) before the change */
|
|
227
|
+
from?: any[];
|
|
228
|
+
/** New value(s) after the change */
|
|
229
|
+
to?: any[];
|
|
230
|
+
/** Type of change operation */
|
|
231
|
+
operation?: string;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Represents the difference between two item revisions.
|
|
235
|
+
*
|
|
236
|
+
* Used when comparing specific revisions to see what changed.
|
|
237
|
+
*
|
|
238
|
+
* @interface PodioItemRevisionDiff
|
|
239
|
+
*/
|
|
240
|
+
export interface PodioItemRevisionDiff {
|
|
241
|
+
/** Starting revision number */
|
|
242
|
+
from_revision: number;
|
|
243
|
+
/** Ending revision number */
|
|
244
|
+
to_revision: number;
|
|
245
|
+
/** Array of changes between the revisions */
|
|
246
|
+
changes: PodioItemRevisionChange[];
|
|
247
|
+
/** Summary of the overall changes */
|
|
248
|
+
summary?: string;
|
|
249
|
+
}
|
|
250
|
+
//# sourceMappingURL=podio-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"podio-types.d.ts","sourceRoot":"","sources":["../../src/types/podio-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAS;IACxB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,yD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AAM,CAAC;KACjB,CAAC;IACF,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,oCAAoC;IACpC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;IACX,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,+BAA+B;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACnC,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Podio-specific data model types and interfaces.
|
|
3
|
+
*
|
|
4
|
+
* This module contains all TypeScript interfaces that represent
|
|
5
|
+
* core Podio entities such as items, fields, tasks, and users.
|
|
6
|
+
* These types mirror the structure returned by the Podio API.
|
|
7
|
+
*
|
|
8
|
+
* @module PodioTypes
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=podio-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"podio-types.js","sourceRoot":"","sources":["../../src/types/podio-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Search-related type definitions for Podio MCP server
|
|
3
|
+
*
|
|
4
|
+
* This module defines all types related to search functionality,
|
|
5
|
+
* including search scopes, filters, results, and API responses.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Available search scopes in Podio
|
|
9
|
+
*/
|
|
10
|
+
export declare enum SearchScope {
|
|
11
|
+
/** Search across all accessible content */
|
|
12
|
+
GLOBAL = "global",
|
|
13
|
+
/** Search within a specific space */
|
|
14
|
+
SPACE = "space",
|
|
15
|
+
/** Search within a specific app */
|
|
16
|
+
APP = "app",
|
|
17
|
+
/** Search within a specific organization */
|
|
18
|
+
ORGANIZATION = "organization"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Types of content that can be searched
|
|
22
|
+
*/
|
|
23
|
+
export declare enum SearchType {
|
|
24
|
+
/** Items in apps */
|
|
25
|
+
ITEM = "item",
|
|
26
|
+
/** Tasks */
|
|
27
|
+
TASK = "task",
|
|
28
|
+
/** Status updates */
|
|
29
|
+
STATUS = "status",
|
|
30
|
+
/** Files and attachments */
|
|
31
|
+
FILE = "file",
|
|
32
|
+
/** Conversations */
|
|
33
|
+
CONVERSATION = "conversation",
|
|
34
|
+
/** User profiles */
|
|
35
|
+
PROFILE = "profile",
|
|
36
|
+
/** Apps */
|
|
37
|
+
APP = "app",
|
|
38
|
+
/** Spaces */
|
|
39
|
+
SPACE = "space"
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Search filters and parameters
|
|
43
|
+
*/
|
|
44
|
+
export interface SearchFilters {
|
|
45
|
+
/** The search query text */
|
|
46
|
+
query: string;
|
|
47
|
+
/** Type of content to search for */
|
|
48
|
+
type?: SearchType | SearchType[];
|
|
49
|
+
/** Maximum number of results to return */
|
|
50
|
+
limit?: number;
|
|
51
|
+
/** Number of results to skip (for pagination) */
|
|
52
|
+
offset?: number;
|
|
53
|
+
/** ID of the space to search in (for space/app scoped searches) */
|
|
54
|
+
space_id?: number;
|
|
55
|
+
/** ID of the app to search in (for app scoped searches) */
|
|
56
|
+
app_id?: number;
|
|
57
|
+
/** ID of the organization to search in (for org scoped searches) */
|
|
58
|
+
org_id?: number;
|
|
59
|
+
/** Date range - search created after this date (ISO 8601) */
|
|
60
|
+
created_from?: string;
|
|
61
|
+
/** Date range - search created before this date (ISO 8601) */
|
|
62
|
+
created_to?: string;
|
|
63
|
+
/** Only search in specific fields (e.g., 'title', 'description') */
|
|
64
|
+
fields?: string[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A single search result item
|
|
68
|
+
*/
|
|
69
|
+
export interface SearchResult {
|
|
70
|
+
/** Unique ID of the result */
|
|
71
|
+
id: number;
|
|
72
|
+
/** Type of result */
|
|
73
|
+
type: SearchType;
|
|
74
|
+
/** Title or name of the result */
|
|
75
|
+
title: string;
|
|
76
|
+
/** Description or content snippet */
|
|
77
|
+
description?: string;
|
|
78
|
+
/** URL or link to the result */
|
|
79
|
+
link?: string;
|
|
80
|
+
/** App information (if result is from an app) */
|
|
81
|
+
app?: {
|
|
82
|
+
id: number;
|
|
83
|
+
name: string;
|
|
84
|
+
space_id: number;
|
|
85
|
+
space_name: string;
|
|
86
|
+
};
|
|
87
|
+
/** Space information (if applicable) */
|
|
88
|
+
space?: {
|
|
89
|
+
id: number;
|
|
90
|
+
name: string;
|
|
91
|
+
org_id: number;
|
|
92
|
+
org_name: string;
|
|
93
|
+
};
|
|
94
|
+
/** User/profile information (for profile results) */
|
|
95
|
+
user?: {
|
|
96
|
+
id: number;
|
|
97
|
+
name: string;
|
|
98
|
+
mail: string;
|
|
99
|
+
avatar?: string;
|
|
100
|
+
};
|
|
101
|
+
/** File information (for file results) */
|
|
102
|
+
file?: {
|
|
103
|
+
id: number;
|
|
104
|
+
name: string;
|
|
105
|
+
mimetype: string;
|
|
106
|
+
size: number;
|
|
107
|
+
};
|
|
108
|
+
/** Creation date */
|
|
109
|
+
created_on: string;
|
|
110
|
+
/** Last updated date */
|
|
111
|
+
last_event_on?: string;
|
|
112
|
+
/** Search result score/relevance */
|
|
113
|
+
score?: number;
|
|
114
|
+
/** Highlighted text snippets showing matches */
|
|
115
|
+
highlights?: string[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Response from search API endpoints
|
|
119
|
+
*/
|
|
120
|
+
export interface SearchResponse {
|
|
121
|
+
/** Array of search results */
|
|
122
|
+
results: SearchResult[];
|
|
123
|
+
/** Total number of results available */
|
|
124
|
+
total: number;
|
|
125
|
+
/** Number of results returned in this response */
|
|
126
|
+
count: number;
|
|
127
|
+
/** Offset used for this search */
|
|
128
|
+
offset: number;
|
|
129
|
+
/** Search query that was executed */
|
|
130
|
+
query: string;
|
|
131
|
+
/** Search scope used */
|
|
132
|
+
scope: SearchScope;
|
|
133
|
+
/** Filters applied */
|
|
134
|
+
filters: SearchFilters;
|
|
135
|
+
/** Time taken to execute search (in milliseconds) */
|
|
136
|
+
search_time?: number;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Grouped search results by type
|
|
140
|
+
*/
|
|
141
|
+
export interface GroupedSearchResults {
|
|
142
|
+
/** Results grouped by type */
|
|
143
|
+
groups: {
|
|
144
|
+
[K in SearchType]?: {
|
|
145
|
+
results: SearchResult[];
|
|
146
|
+
count: number;
|
|
147
|
+
total: number;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
/** Overall totals */
|
|
151
|
+
totals: {
|
|
152
|
+
all_results: number;
|
|
153
|
+
returned_results: number;
|
|
154
|
+
};
|
|
155
|
+
/** Search metadata */
|
|
156
|
+
query: string;
|
|
157
|
+
scope: SearchScope;
|
|
158
|
+
search_time?: number;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Search suggestions/autocomplete
|
|
162
|
+
*/
|
|
163
|
+
export interface SearchSuggestion {
|
|
164
|
+
/** Suggested search text */
|
|
165
|
+
text: string;
|
|
166
|
+
/** Type of suggestion */
|
|
167
|
+
type: 'recent' | 'popular' | 'completion';
|
|
168
|
+
/** Number of expected results */
|
|
169
|
+
count?: number;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Search context for scoped searches
|
|
173
|
+
*/
|
|
174
|
+
export interface SearchContext {
|
|
175
|
+
/** Current space ID (if in a space context) */
|
|
176
|
+
space_id?: number;
|
|
177
|
+
/** Current app ID (if in an app context) */
|
|
178
|
+
app_id?: number;
|
|
179
|
+
/** Current organization ID */
|
|
180
|
+
org_id?: number;
|
|
181
|
+
/** User's accessible spaces */
|
|
182
|
+
accessible_spaces?: Array<{
|
|
183
|
+
id: number;
|
|
184
|
+
name: string;
|
|
185
|
+
org_id: number;
|
|
186
|
+
}>;
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=search-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-types.d.ts","sourceRoot":"","sources":["../../src/types/search-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,oBAAY,WAAW;IACrB,2CAA2C;IAC3C,MAAM,WAAW;IACjB,qCAAqC;IACrC,KAAK,UAAU;IACf,mCAAmC;IACnC,GAAG,QAAQ;IACX,4CAA4C;IAC5C,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,oBAAY,UAAU;IACpB,oBAAoB;IACpB,IAAI,SAAS;IACb,YAAY;IACZ,IAAI,SAAS;IACb,qBAAqB;IACrB,MAAM,WAAW;IACjB,4BAA4B;IAC5B,IAAI,SAAS;IACb,oBAAoB;IACpB,YAAY,iBAAiB;IAC7B,oBAAoB;IACpB,OAAO,YAAY;IACnB,WAAW;IACX,GAAG,QAAQ;IACX,aAAa;IACb,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4BAA4B;IAC5B,KAAK,EAA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WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;IAC1C,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,iBAAiB,CAAC,EAAE,KAAK,CAAC;QACxB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;CACJ"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Search-related type definitions for Podio MCP server
|
|
3
|
+
*
|
|
4
|
+
* This module defines all types related to search functionality,
|
|
5
|
+
* including search scopes, filters, results, and API responses.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Available search scopes in Podio
|
|
9
|
+
*/
|
|
10
|
+
export var SearchScope;
|
|
11
|
+
(function (SearchScope) {
|
|
12
|
+
/** Search across all accessible content */
|
|
13
|
+
SearchScope["GLOBAL"] = "global";
|
|
14
|
+
/** Search within a specific space */
|
|
15
|
+
SearchScope["SPACE"] = "space";
|
|
16
|
+
/** Search within a specific app */
|
|
17
|
+
SearchScope["APP"] = "app";
|
|
18
|
+
/** Search within a specific organization */
|
|
19
|
+
SearchScope["ORGANIZATION"] = "organization";
|
|
20
|
+
})(SearchScope || (SearchScope = {}));
|
|
21
|
+
/**
|
|
22
|
+
* Types of content that can be searched
|
|
23
|
+
*/
|
|
24
|
+
export var SearchType;
|
|
25
|
+
(function (SearchType) {
|
|
26
|
+
/** Items in apps */
|
|
27
|
+
SearchType["ITEM"] = "item";
|
|
28
|
+
/** Tasks */
|
|
29
|
+
SearchType["TASK"] = "task";
|
|
30
|
+
/** Status updates */
|
|
31
|
+
SearchType["STATUS"] = "status";
|
|
32
|
+
/** Files and attachments */
|
|
33
|
+
SearchType["FILE"] = "file";
|
|
34
|
+
/** Conversations */
|
|
35
|
+
SearchType["CONVERSATION"] = "conversation";
|
|
36
|
+
/** User profiles */
|
|
37
|
+
SearchType["PROFILE"] = "profile";
|
|
38
|
+
/** Apps */
|
|
39
|
+
SearchType["APP"] = "app";
|
|
40
|
+
/** Spaces */
|
|
41
|
+
SearchType["SPACE"] = "space";
|
|
42
|
+
})(SearchType || (SearchType = {}));
|
|
43
|
+
//# sourceMappingURL=search-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-types.js","sourceRoot":"","sources":["../../src/types/search-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,2CAA2C;IAC3C,gCAAiB,CAAA;IACjB,qCAAqC;IACrC,8BAAe,CAAA;IACf,mCAAmC;IACnC,0BAAW,CAAA;IACX,4CAA4C;IAC5C,4CAA6B,CAAA;AAC/B,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACpB,oBAAoB;IACpB,2BAAa,CAAA;IACb,YAAY;IACZ,2BAAa,CAAA;IACb,qBAAqB;IACrB,+BAAiB,CAAA;IACjB,4BAA4B;IAC5B,2BAAa,CAAA;IACb,oBAAoB;IACpB,2CAA6B,CAAA;IAC7B,oBAAoB;IACpB,iCAAmB,CAAA;IACnB,WAAW;IACX,yBAAW,CAAA;IACX,aAAa;IACb,6BAAe,CAAA;AACjB,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug utility for conditional logging
|
|
3
|
+
*
|
|
4
|
+
* Provides structured logging with proper log levels and conditional output
|
|
5
|
+
* based on environment configuration.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { debug } from './utils/debug.js';
|
|
10
|
+
*
|
|
11
|
+
* // Log debug information (only shown when debug is enabled)
|
|
12
|
+
* debug.log('MyService', 'Processing request', { id: 123 });
|
|
13
|
+
*
|
|
14
|
+
* // Log warnings for fallback strategies
|
|
15
|
+
* debug.warn('MyService', 'Using fallback strategy');
|
|
16
|
+
*
|
|
17
|
+
* // Log errors (always shown, with option to reduce detail in production)
|
|
18
|
+
* debug.error('MyService', 'Failed to fetch data', error);
|
|
19
|
+
*
|
|
20
|
+
* // Check if debug mode is enabled
|
|
21
|
+
* if (debug.isEnabled()) {
|
|
22
|
+
* // Perform expensive debug operations
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* Environment Variables:
|
|
27
|
+
* - PODIO_DEBUG=true - Enable debug logging (preferred)
|
|
28
|
+
* - DEBUG=true - Alternative debug flag
|
|
29
|
+
* - NODE_ENV=development - Enable debug in development mode
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Debug logger with conditional output
|
|
33
|
+
*/
|
|
34
|
+
export declare const debug: {
|
|
35
|
+
/**
|
|
36
|
+
* Log debug information (diagnostic data, field discovery, etc.)
|
|
37
|
+
*/
|
|
38
|
+
log(prefix: string, message: string, data?: any): void;
|
|
39
|
+
/**
|
|
40
|
+
* Log informational messages (important operational info)
|
|
41
|
+
*/
|
|
42
|
+
info(prefix: string, message: string, data?: any): void;
|
|
43
|
+
/**
|
|
44
|
+
* Log warnings (potential issues, fallback strategies used)
|
|
45
|
+
*/
|
|
46
|
+
warn(prefix: string, message: string, data?: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* Log errors (actual errors that need attention)
|
|
49
|
+
* In production: logs message only
|
|
50
|
+
* In debug mode: logs full error details
|
|
51
|
+
*/
|
|
52
|
+
error(prefix: string, message: string, error?: any): void;
|
|
53
|
+
/**
|
|
54
|
+
* Check if debug mode is enabled
|
|
55
|
+
*/
|
|
56
|
+
isEnabled(): boolean;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/utils/debug.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AA6CH;;GAEG;AACH,eAAO,MAAM,KAAK;IAChB;;OAEG;gBACS,MAAM,WAAW,MAAM,SAAS,GAAG,GAAG,IAAI;IAYtD;;OAEG;iBACU,MAAM,WAAW,MAAM,SAAS,GAAG,GAAG,IAAI;IAYvD;;OAEG;iBACU,MAAM,WAAW,MAAM,SAAS,GAAG,GAAG,IAAI;IAYvD;;;;OAIG;kBACW,MAAM,WAAW,MAAM,UAAU,GAAG,GAAG,IAAI;IAoBzD;;OAEG;iBACU,OAAO;CAGrB,CAAC"}
|