@marktoflow/integrations 2.0.0-alpha.3
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/adapters/claude-code.d.ts +16 -0
- package/dist/adapters/claude-code.d.ts.map +1 -0
- package/dist/adapters/claude-code.js +56 -0
- package/dist/adapters/claude-code.js.map +1 -0
- package/dist/adapters/ollama.d.ts +3 -0
- package/dist/adapters/ollama.d.ts.map +1 -0
- package/dist/adapters/ollama.js +9 -0
- package/dist/adapters/ollama.js.map +1 -0
- package/dist/adapters/opencode.d.ts +21 -0
- package/dist/adapters/opencode.d.ts.map +1 -0
- package/dist/adapters/opencode.js +119 -0
- package/dist/adapters/opencode.js.map +1 -0
- package/dist/claude-code.d.ts +16 -0
- package/dist/claude-code.d.ts.map +1 -0
- package/dist/claude-code.js +56 -0
- package/dist/claude-code.js.map +1 -0
- package/dist/github.d.ts +3 -0
- package/dist/github.d.ts.map +1 -0
- package/dist/github.js +13 -0
- package/dist/github.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +67 -0
- package/dist/index.js.map +1 -0
- package/dist/jira.d.ts +3 -0
- package/dist/jira.d.ts.map +1 -0
- package/dist/jira.js +21 -0
- package/dist/jira.js.map +1 -0
- package/dist/ollama.d.ts +3 -0
- package/dist/ollama.d.ts.map +1 -0
- package/dist/ollama.js +9 -0
- package/dist/ollama.js.map +1 -0
- package/dist/opencode.d.ts +19 -0
- package/dist/opencode.d.ts.map +1 -0
- package/dist/opencode.js +104 -0
- package/dist/opencode.js.map +1 -0
- package/dist/script.d.ts +3 -0
- package/dist/script.d.ts.map +1 -0
- package/dist/script.js +21 -0
- package/dist/script.js.map +1 -0
- package/dist/services/airtable.d.ts +145 -0
- package/dist/services/airtable.d.ts.map +1 -0
- package/dist/services/airtable.js +295 -0
- package/dist/services/airtable.js.map +1 -0
- package/dist/services/confluence.d.ts +205 -0
- package/dist/services/confluence.d.ts.map +1 -0
- package/dist/services/confluence.js +356 -0
- package/dist/services/confluence.js.map +1 -0
- package/dist/services/discord.d.ts +212 -0
- package/dist/services/discord.d.ts.map +1 -0
- package/dist/services/discord.js +279 -0
- package/dist/services/discord.js.map +1 -0
- package/dist/services/github.d.ts +3 -0
- package/dist/services/github.d.ts.map +1 -0
- package/dist/services/github.js +13 -0
- package/dist/services/github.js.map +1 -0
- package/dist/services/gmail-trigger.d.ts +92 -0
- package/dist/services/gmail-trigger.d.ts.map +1 -0
- package/dist/services/gmail-trigger.js +172 -0
- package/dist/services/gmail-trigger.js.map +1 -0
- package/dist/services/gmail.d.ts +116 -0
- package/dist/services/gmail.d.ts.map +1 -0
- package/dist/services/gmail.js +333 -0
- package/dist/services/gmail.js.map +1 -0
- package/dist/services/http.d.ts +120 -0
- package/dist/services/http.d.ts.map +1 -0
- package/dist/services/http.js +284 -0
- package/dist/services/http.js.map +1 -0
- package/dist/services/jira.d.ts +3 -0
- package/dist/services/jira.d.ts.map +1 -0
- package/dist/services/jira.js +21 -0
- package/dist/services/jira.js.map +1 -0
- package/dist/services/linear.d.ts +163 -0
- package/dist/services/linear.d.ts.map +1 -0
- package/dist/services/linear.js +326 -0
- package/dist/services/linear.js.map +1 -0
- package/dist/services/notion.d.ts +206 -0
- package/dist/services/notion.d.ts.map +1 -0
- package/dist/services/notion.js +358 -0
- package/dist/services/notion.js.map +1 -0
- package/dist/services/outlook-trigger.d.ts +121 -0
- package/dist/services/outlook-trigger.d.ts.map +1 -0
- package/dist/services/outlook-trigger.js +204 -0
- package/dist/services/outlook-trigger.js.map +1 -0
- package/dist/services/outlook.d.ts +237 -0
- package/dist/services/outlook.d.ts.map +1 -0
- package/dist/services/outlook.js +475 -0
- package/dist/services/outlook.js.map +1 -0
- package/dist/services/slack-socket.d.ts +18 -0
- package/dist/services/slack-socket.d.ts.map +1 -0
- package/dist/services/slack-socket.js +46 -0
- package/dist/services/slack-socket.js.map +1 -0
- package/dist/services/slack.d.ts +3 -0
- package/dist/services/slack.d.ts.map +1 -0
- package/dist/services/slack.js +11 -0
- package/dist/services/slack.js.map +1 -0
- package/dist/slack.d.ts +3 -0
- package/dist/slack.d.ts.map +1 -0
- package/dist/slack.js +11 -0
- package/dist/slack.js.map +1 -0
- package/dist/tools/script.d.ts +3 -0
- package/dist/tools/script.d.ts.map +1 -0
- package/dist/tools/script.js +21 -0
- package/dist/tools/script.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Linear Integration
|
|
3
|
+
*
|
|
4
|
+
* Modern issue tracking for development teams.
|
|
5
|
+
* API Docs: https://developers.linear.app/docs/graphql/working-with-the-graphql-api
|
|
6
|
+
*/
|
|
7
|
+
const LINEAR_API_URL = 'https://api.linear.app/graphql';
|
|
8
|
+
/**
|
|
9
|
+
* Linear GraphQL client for workflow integration
|
|
10
|
+
*/
|
|
11
|
+
export class LinearClient {
|
|
12
|
+
apiKey;
|
|
13
|
+
constructor(apiKey) {
|
|
14
|
+
this.apiKey = apiKey;
|
|
15
|
+
}
|
|
16
|
+
async query(query, variables) {
|
|
17
|
+
const response = await fetch(LINEAR_API_URL, {
|
|
18
|
+
method: 'POST',
|
|
19
|
+
headers: {
|
|
20
|
+
'Content-Type': 'application/json',
|
|
21
|
+
Authorization: this.apiKey,
|
|
22
|
+
},
|
|
23
|
+
body: JSON.stringify({ query, variables }),
|
|
24
|
+
});
|
|
25
|
+
if (!response.ok) {
|
|
26
|
+
throw new Error(`Linear API error: ${response.status} ${response.statusText}`);
|
|
27
|
+
}
|
|
28
|
+
const result = (await response.json());
|
|
29
|
+
if (result.errors?.length) {
|
|
30
|
+
throw new Error(`Linear GraphQL error: ${result.errors.map((e) => e.message).join(', ')}`);
|
|
31
|
+
}
|
|
32
|
+
return result.data;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get the current user
|
|
36
|
+
*/
|
|
37
|
+
async getViewer() {
|
|
38
|
+
const data = await this.query(`
|
|
39
|
+
query {
|
|
40
|
+
viewer {
|
|
41
|
+
id
|
|
42
|
+
name
|
|
43
|
+
email
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`);
|
|
47
|
+
return data.viewer;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List teams
|
|
51
|
+
*/
|
|
52
|
+
async listTeams() {
|
|
53
|
+
const data = await this.query(`
|
|
54
|
+
query {
|
|
55
|
+
teams {
|
|
56
|
+
nodes {
|
|
57
|
+
id
|
|
58
|
+
name
|
|
59
|
+
key
|
|
60
|
+
description
|
|
61
|
+
issueCount
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`);
|
|
66
|
+
return data.teams.nodes;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get an issue by ID or identifier
|
|
70
|
+
*/
|
|
71
|
+
async getIssue(idOrIdentifier) {
|
|
72
|
+
const isIdentifier = idOrIdentifier.includes('-');
|
|
73
|
+
const queryField = isIdentifier ? 'issueVcsBranchSearch' : 'issue';
|
|
74
|
+
const queryArg = isIdentifier ? 'branchName' : 'id';
|
|
75
|
+
const data = await this.query(`
|
|
76
|
+
query GetIssue($id: String!) {
|
|
77
|
+
${queryField}(${queryArg}: $id) {
|
|
78
|
+
id
|
|
79
|
+
identifier
|
|
80
|
+
title
|
|
81
|
+
description
|
|
82
|
+
priority
|
|
83
|
+
priorityLabel
|
|
84
|
+
state { id name type }
|
|
85
|
+
assignee { id name email }
|
|
86
|
+
team { id name key }
|
|
87
|
+
project { id name }
|
|
88
|
+
labels { nodes { id name color } }
|
|
89
|
+
createdAt
|
|
90
|
+
updatedAt
|
|
91
|
+
url
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`, { id: idOrIdentifier });
|
|
95
|
+
const issue = data.issue ?? data.issueVcsBranchSearch;
|
|
96
|
+
if (!issue) {
|
|
97
|
+
throw new Error(`Issue not found: ${idOrIdentifier}`);
|
|
98
|
+
}
|
|
99
|
+
// Flatten labels
|
|
100
|
+
return {
|
|
101
|
+
...issue,
|
|
102
|
+
labels: issue.labels?.nodes ?? [],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Create an issue
|
|
107
|
+
*/
|
|
108
|
+
async createIssue(options) {
|
|
109
|
+
const data = await this.query(`
|
|
110
|
+
mutation CreateIssue($input: IssueCreateInput!) {
|
|
111
|
+
issueCreate(input: $input) {
|
|
112
|
+
success
|
|
113
|
+
issue {
|
|
114
|
+
id
|
|
115
|
+
identifier
|
|
116
|
+
title
|
|
117
|
+
description
|
|
118
|
+
priority
|
|
119
|
+
priorityLabel
|
|
120
|
+
state { id name type }
|
|
121
|
+
assignee { id name email }
|
|
122
|
+
team { id name key }
|
|
123
|
+
project { id name }
|
|
124
|
+
labels { nodes { id name color } }
|
|
125
|
+
createdAt
|
|
126
|
+
updatedAt
|
|
127
|
+
url
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`, { input: options });
|
|
132
|
+
if (!data.issueCreate.success) {
|
|
133
|
+
throw new Error('Failed to create issue');
|
|
134
|
+
}
|
|
135
|
+
const issue = data.issueCreate.issue;
|
|
136
|
+
return {
|
|
137
|
+
...issue,
|
|
138
|
+
labels: issue.labels?.nodes ?? [],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Update an issue
|
|
143
|
+
*/
|
|
144
|
+
async updateIssue(issueId, options) {
|
|
145
|
+
const data = await this.query(`
|
|
146
|
+
mutation UpdateIssue($id: String!, $input: IssueUpdateInput!) {
|
|
147
|
+
issueUpdate(id: $id, input: $input) {
|
|
148
|
+
success
|
|
149
|
+
issue {
|
|
150
|
+
id
|
|
151
|
+
identifier
|
|
152
|
+
title
|
|
153
|
+
description
|
|
154
|
+
priority
|
|
155
|
+
priorityLabel
|
|
156
|
+
state { id name type }
|
|
157
|
+
assignee { id name email }
|
|
158
|
+
team { id name key }
|
|
159
|
+
project { id name }
|
|
160
|
+
labels { nodes { id name color } }
|
|
161
|
+
createdAt
|
|
162
|
+
updatedAt
|
|
163
|
+
url
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
`, { id: issueId, input: options });
|
|
168
|
+
if (!data.issueUpdate.success) {
|
|
169
|
+
throw new Error('Failed to update issue');
|
|
170
|
+
}
|
|
171
|
+
const issue = data.issueUpdate.issue;
|
|
172
|
+
return {
|
|
173
|
+
...issue,
|
|
174
|
+
labels: issue.labels?.nodes ?? [],
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Search issues
|
|
179
|
+
*/
|
|
180
|
+
async searchIssues(options = {}) {
|
|
181
|
+
const { query, teamId, assigneeId, projectId, priority, first = 25, after } = options;
|
|
182
|
+
// Build filter
|
|
183
|
+
const filters = [];
|
|
184
|
+
if (teamId)
|
|
185
|
+
filters.push(`team: { id: { eq: "${teamId}" } }`);
|
|
186
|
+
if (assigneeId)
|
|
187
|
+
filters.push(`assignee: { id: { eq: "${assigneeId}" } }`);
|
|
188
|
+
if (projectId)
|
|
189
|
+
filters.push(`project: { id: { eq: "${projectId}" } }`);
|
|
190
|
+
if (priority !== undefined)
|
|
191
|
+
filters.push(`priority: { eq: ${priority} }`);
|
|
192
|
+
const filterArg = filters.length > 0 ? `filter: { ${filters.join(', ')} }` : '';
|
|
193
|
+
const queryArg = query ? `query: "${query}"` : '';
|
|
194
|
+
const paginationArgs = `first: ${first}${after ? `, after: "${after}"` : ''}`;
|
|
195
|
+
const allArgs = [queryArg, filterArg, paginationArgs].filter(Boolean).join(', ');
|
|
196
|
+
const data = await this.query(`
|
|
197
|
+
query {
|
|
198
|
+
issues(${allArgs}) {
|
|
199
|
+
nodes {
|
|
200
|
+
id
|
|
201
|
+
identifier
|
|
202
|
+
title
|
|
203
|
+
description
|
|
204
|
+
priority
|
|
205
|
+
priorityLabel
|
|
206
|
+
state { id name type }
|
|
207
|
+
assignee { id name email }
|
|
208
|
+
team { id name key }
|
|
209
|
+
project { id name }
|
|
210
|
+
labels { nodes { id name color } }
|
|
211
|
+
createdAt
|
|
212
|
+
updatedAt
|
|
213
|
+
url
|
|
214
|
+
}
|
|
215
|
+
pageInfo {
|
|
216
|
+
hasNextPage
|
|
217
|
+
endCursor
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`);
|
|
222
|
+
return {
|
|
223
|
+
issues: data.issues.nodes.map((issue) => ({
|
|
224
|
+
...issue,
|
|
225
|
+
labels: issue.labels?.nodes ?? [],
|
|
226
|
+
})),
|
|
227
|
+
hasMore: data.issues.pageInfo.hasNextPage,
|
|
228
|
+
endCursor: data.issues.pageInfo.endCursor,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* List projects
|
|
233
|
+
*/
|
|
234
|
+
async listProjects(teamId) {
|
|
235
|
+
const filter = teamId ? `filter: { accessibleTeams: { id: { eq: "${teamId}" } } }` : '';
|
|
236
|
+
const data = await this.query(`
|
|
237
|
+
query {
|
|
238
|
+
projects(${filter}) {
|
|
239
|
+
nodes {
|
|
240
|
+
id
|
|
241
|
+
name
|
|
242
|
+
description
|
|
243
|
+
state
|
|
244
|
+
progress
|
|
245
|
+
targetDate
|
|
246
|
+
teams { nodes { id name } }
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
`);
|
|
251
|
+
return data.projects.nodes.map((project) => ({
|
|
252
|
+
...project,
|
|
253
|
+
teams: project.teams?.nodes ?? [],
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Get workflow states for a team
|
|
258
|
+
*/
|
|
259
|
+
async getWorkflowStates(teamId) {
|
|
260
|
+
const data = await this.query(`
|
|
261
|
+
query GetStates($teamId: String!) {
|
|
262
|
+
team(id: $teamId) {
|
|
263
|
+
states {
|
|
264
|
+
nodes {
|
|
265
|
+
id
|
|
266
|
+
name
|
|
267
|
+
type
|
|
268
|
+
position
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
`, { teamId });
|
|
274
|
+
return data.team.states.nodes;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Add a comment to an issue
|
|
278
|
+
*/
|
|
279
|
+
async addComment(issueId, body) {
|
|
280
|
+
const data = await this.query(`
|
|
281
|
+
mutation AddComment($issueId: String!, $body: String!) {
|
|
282
|
+
commentCreate(input: { issueId: $issueId, body: $body }) {
|
|
283
|
+
success
|
|
284
|
+
comment {
|
|
285
|
+
id
|
|
286
|
+
body
|
|
287
|
+
createdAt
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
`, { issueId, body });
|
|
292
|
+
if (!data.commentCreate.success) {
|
|
293
|
+
throw new Error('Failed to add comment');
|
|
294
|
+
}
|
|
295
|
+
return data.commentCreate.comment;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Archive an issue
|
|
299
|
+
*/
|
|
300
|
+
async archiveIssue(issueId) {
|
|
301
|
+
const data = await this.query(`
|
|
302
|
+
mutation ArchiveIssue($id: String!) {
|
|
303
|
+
issueArchive(id: $id) {
|
|
304
|
+
success
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
`, { id: issueId });
|
|
308
|
+
if (!data.issueArchive.success) {
|
|
309
|
+
throw new Error('Failed to archive issue');
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
export const LinearInitializer = {
|
|
314
|
+
async initialize(_module, config) {
|
|
315
|
+
const apiKey = config.auth?.['api_key'];
|
|
316
|
+
if (!apiKey) {
|
|
317
|
+
throw new Error('Linear SDK requires auth.api_key');
|
|
318
|
+
}
|
|
319
|
+
const client = new LinearClient(apiKey);
|
|
320
|
+
return {
|
|
321
|
+
client,
|
|
322
|
+
actions: client,
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325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AC;CACF;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAmB;IAC/C,KAAK,CAAC,UAAU,CAAC,OAAgB,EAAE,MAAkB;QACnD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,SAAS,CAAuB,CAAC;QAC9D,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACtD,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO;YACL,MAAM;YACN,OAAO,EAAE,MAAM;SAChB,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notion Integration
|
|
3
|
+
*
|
|
4
|
+
* All-in-one workspace for docs, databases, and knowledge management.
|
|
5
|
+
* API Docs: https://developers.notion.com/
|
|
6
|
+
*/
|
|
7
|
+
import { SDKInitializer } from '@marktoflow/core';
|
|
8
|
+
export interface NotionPage {
|
|
9
|
+
id: string;
|
|
10
|
+
url: string;
|
|
11
|
+
title: string;
|
|
12
|
+
icon?: {
|
|
13
|
+
type: string;
|
|
14
|
+
emoji?: string;
|
|
15
|
+
external?: {
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
cover?: {
|
|
20
|
+
type: string;
|
|
21
|
+
external?: {
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
parent: {
|
|
26
|
+
type: string;
|
|
27
|
+
page_id?: string;
|
|
28
|
+
database_id?: string;
|
|
29
|
+
workspace?: boolean;
|
|
30
|
+
};
|
|
31
|
+
createdTime: string;
|
|
32
|
+
lastEditedTime: string;
|
|
33
|
+
createdBy: {
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
lastEditedBy: {
|
|
37
|
+
id: string;
|
|
38
|
+
};
|
|
39
|
+
archived: boolean;
|
|
40
|
+
properties?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export interface NotionDatabase {
|
|
43
|
+
id: string;
|
|
44
|
+
url: string;
|
|
45
|
+
title: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
icon?: {
|
|
48
|
+
type: string;
|
|
49
|
+
emoji?: string;
|
|
50
|
+
};
|
|
51
|
+
properties: Record<string, {
|
|
52
|
+
id: string;
|
|
53
|
+
type: string;
|
|
54
|
+
name: string;
|
|
55
|
+
}>;
|
|
56
|
+
createdTime: string;
|
|
57
|
+
lastEditedTime: string;
|
|
58
|
+
archived: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface NotionBlock {
|
|
61
|
+
id: string;
|
|
62
|
+
type: string;
|
|
63
|
+
hasChildren: boolean;
|
|
64
|
+
createdTime: string;
|
|
65
|
+
lastEditedTime: string;
|
|
66
|
+
content: unknown;
|
|
67
|
+
}
|
|
68
|
+
export interface CreatePageOptions {
|
|
69
|
+
parentPageId?: string;
|
|
70
|
+
parentDatabaseId?: string;
|
|
71
|
+
title: string;
|
|
72
|
+
icon?: {
|
|
73
|
+
emoji: string;
|
|
74
|
+
} | {
|
|
75
|
+
external: {
|
|
76
|
+
url: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
cover?: {
|
|
80
|
+
external: {
|
|
81
|
+
url: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
properties?: Record<string, unknown>;
|
|
85
|
+
children?: NotionBlockInput[];
|
|
86
|
+
}
|
|
87
|
+
export interface NotionBlockInput {
|
|
88
|
+
type: 'paragraph' | 'heading_1' | 'heading_2' | 'heading_3' | 'bulleted_list_item' | 'numbered_list_item' | 'to_do' | 'toggle' | 'code' | 'quote' | 'callout' | 'divider';
|
|
89
|
+
content?: string;
|
|
90
|
+
language?: string;
|
|
91
|
+
checked?: boolean;
|
|
92
|
+
children?: NotionBlockInput[];
|
|
93
|
+
}
|
|
94
|
+
export interface QueryDatabaseOptions {
|
|
95
|
+
filter?: Record<string, unknown>;
|
|
96
|
+
sorts?: Array<{
|
|
97
|
+
property: string;
|
|
98
|
+
direction: 'ascending' | 'descending';
|
|
99
|
+
} | {
|
|
100
|
+
timestamp: 'created_time' | 'last_edited_time';
|
|
101
|
+
direction: 'ascending' | 'descending';
|
|
102
|
+
}>;
|
|
103
|
+
startCursor?: string;
|
|
104
|
+
pageSize?: number;
|
|
105
|
+
}
|
|
106
|
+
export interface SearchOptions {
|
|
107
|
+
query?: string;
|
|
108
|
+
filter?: {
|
|
109
|
+
property: 'object';
|
|
110
|
+
value: 'page' | 'database';
|
|
111
|
+
};
|
|
112
|
+
sort?: {
|
|
113
|
+
direction: 'ascending' | 'descending';
|
|
114
|
+
timestamp: 'last_edited_time';
|
|
115
|
+
};
|
|
116
|
+
startCursor?: string;
|
|
117
|
+
pageSize?: number;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Notion API client for workflow integration
|
|
121
|
+
*/
|
|
122
|
+
export declare class NotionClient {
|
|
123
|
+
private token;
|
|
124
|
+
constructor(token: string);
|
|
125
|
+
private request;
|
|
126
|
+
/**
|
|
127
|
+
* Get the current user
|
|
128
|
+
*/
|
|
129
|
+
getMe(): Promise<{
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
type: string;
|
|
133
|
+
}>;
|
|
134
|
+
/**
|
|
135
|
+
* Search pages and databases
|
|
136
|
+
*/
|
|
137
|
+
search(options?: SearchOptions): Promise<{
|
|
138
|
+
results: (NotionPage | NotionDatabase)[];
|
|
139
|
+
hasMore: boolean;
|
|
140
|
+
nextCursor?: string;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Get a page by ID
|
|
144
|
+
*/
|
|
145
|
+
getPage(pageId: string): Promise<NotionPage>;
|
|
146
|
+
/**
|
|
147
|
+
* Create a page
|
|
148
|
+
*/
|
|
149
|
+
createPage(options: CreatePageOptions): Promise<NotionPage>;
|
|
150
|
+
/**
|
|
151
|
+
* Update page properties
|
|
152
|
+
*/
|
|
153
|
+
updatePage(pageId: string, options: {
|
|
154
|
+
properties?: Record<string, unknown>;
|
|
155
|
+
icon?: {
|
|
156
|
+
emoji: string;
|
|
157
|
+
} | {
|
|
158
|
+
external: {
|
|
159
|
+
url: string;
|
|
160
|
+
};
|
|
161
|
+
} | null;
|
|
162
|
+
cover?: {
|
|
163
|
+
external: {
|
|
164
|
+
url: string;
|
|
165
|
+
};
|
|
166
|
+
} | null;
|
|
167
|
+
archived?: boolean;
|
|
168
|
+
}): Promise<NotionPage>;
|
|
169
|
+
/**
|
|
170
|
+
* Get a database by ID
|
|
171
|
+
*/
|
|
172
|
+
getDatabase(databaseId: string): Promise<NotionDatabase>;
|
|
173
|
+
/**
|
|
174
|
+
* Query a database
|
|
175
|
+
*/
|
|
176
|
+
queryDatabase(databaseId: string, options?: QueryDatabaseOptions): Promise<{
|
|
177
|
+
results: NotionPage[];
|
|
178
|
+
hasMore: boolean;
|
|
179
|
+
nextCursor?: string;
|
|
180
|
+
}>;
|
|
181
|
+
/**
|
|
182
|
+
* Get block children (page content)
|
|
183
|
+
*/
|
|
184
|
+
getBlockChildren(blockId: string, options?: {
|
|
185
|
+
startCursor?: string;
|
|
186
|
+
pageSize?: number;
|
|
187
|
+
}): Promise<{
|
|
188
|
+
blocks: NotionBlock[];
|
|
189
|
+
hasMore: boolean;
|
|
190
|
+
nextCursor?: string;
|
|
191
|
+
}>;
|
|
192
|
+
/**
|
|
193
|
+
* Append blocks to a page
|
|
194
|
+
*/
|
|
195
|
+
appendBlocks(pageId: string, blocks: NotionBlockInput[]): Promise<NotionBlock[]>;
|
|
196
|
+
/**
|
|
197
|
+
* Delete a block
|
|
198
|
+
*/
|
|
199
|
+
deleteBlock(blockId: string): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Archive a page (soft delete)
|
|
202
|
+
*/
|
|
203
|
+
archivePage(pageId: string): Promise<void>;
|
|
204
|
+
}
|
|
205
|
+
export declare const NotionInitializer: SDKInitializer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