@automate.ax/catalog 0.141.0 → 0.143.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/dist/catalog.d.ts +45 -0
- package/dist/catalog.js +25 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/triggers/clickup.d.ts +420 -0
- package/dist/triggers/clickup.js +65 -0
- package/dist/triggers/google-ads.d.ts +277 -0
- package/dist/triggers/google-ads.js +54 -0
- package/dist/triggers/index.d.ts +1899 -319
- package/dist/triggers/index.js +4 -0
- package/package.json +14 -2
- package/src/catalog.ts +26 -0
- package/src/index.ts +1 -0
- package/src/triggers/clickup.ts +82 -0
- package/src/triggers/google-ads.ts +131 -0
- package/src/triggers/index.ts +4 -0
package/dist/catalog.d.ts
CHANGED
|
@@ -285,6 +285,29 @@ export declare const closeBotService: {
|
|
|
285
285
|
readonly credentialUrl?: string | undefined;
|
|
286
286
|
}];
|
|
287
287
|
};
|
|
288
|
+
export declare const clickUpService: {
|
|
289
|
+
readonly connectionMethods: readonly [{
|
|
290
|
+
readonly id: "oauth";
|
|
291
|
+
readonly name: "OAuth";
|
|
292
|
+
readonly type: "redirect";
|
|
293
|
+
}, {
|
|
294
|
+
readonly credentialUrl: "https://app.clickup.com/settings/apps";
|
|
295
|
+
readonly fields: readonly [{
|
|
296
|
+
readonly input: "password";
|
|
297
|
+
readonly label: "Personal API token";
|
|
298
|
+
readonly name: "apiKey";
|
|
299
|
+
readonly placeholder: "pk_...";
|
|
300
|
+
readonly required: true;
|
|
301
|
+
}];
|
|
302
|
+
readonly id: "personal-token";
|
|
303
|
+
readonly name: "Personal API token";
|
|
304
|
+
readonly type: "form";
|
|
305
|
+
}];
|
|
306
|
+
readonly description: "Connect a ClickUp account with OAuth or a personal API token.";
|
|
307
|
+
readonly id: "clickup";
|
|
308
|
+
readonly name: "ClickUp";
|
|
309
|
+
readonly preferredConnectionMethodId: "oauth";
|
|
310
|
+
};
|
|
288
311
|
export declare const chatgptService: {
|
|
289
312
|
readonly connectionMethods: readonly [{
|
|
290
313
|
readonly fields: readonly [{
|
|
@@ -1372,6 +1395,28 @@ export declare const integrationCatalog: readonly [{
|
|
|
1372
1395
|
readonly type: "form";
|
|
1373
1396
|
readonly credentialUrl?: string | undefined;
|
|
1374
1397
|
}];
|
|
1398
|
+
}, {
|
|
1399
|
+
readonly connectionMethods: readonly [{
|
|
1400
|
+
readonly id: "oauth";
|
|
1401
|
+
readonly name: "OAuth";
|
|
1402
|
+
readonly type: "redirect";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly credentialUrl: "https://app.clickup.com/settings/apps";
|
|
1405
|
+
readonly fields: readonly [{
|
|
1406
|
+
readonly input: "password";
|
|
1407
|
+
readonly label: "Personal API token";
|
|
1408
|
+
readonly name: "apiKey";
|
|
1409
|
+
readonly placeholder: "pk_...";
|
|
1410
|
+
readonly required: true;
|
|
1411
|
+
}];
|
|
1412
|
+
readonly id: "personal-token";
|
|
1413
|
+
readonly name: "Personal API token";
|
|
1414
|
+
readonly type: "form";
|
|
1415
|
+
}];
|
|
1416
|
+
readonly description: "Connect a ClickUp account with OAuth or a personal API token.";
|
|
1417
|
+
readonly id: "clickup";
|
|
1418
|
+
readonly name: "ClickUp";
|
|
1419
|
+
readonly preferredConnectionMethodId: "oauth";
|
|
1375
1420
|
}, {
|
|
1376
1421
|
readonly connectionMethods: readonly [{
|
|
1377
1422
|
readonly fields: readonly [{
|
package/dist/catalog.js
CHANGED
|
@@ -224,6 +224,30 @@ export const closeBotService = defineApiKeyService({
|
|
|
224
224
|
name: "CloseBot",
|
|
225
225
|
placeholder: "CloseBot API key",
|
|
226
226
|
});
|
|
227
|
+
export const clickUpService = defineIntegrationService({
|
|
228
|
+
connectionMethods: [
|
|
229
|
+
{ id: "oauth", name: "OAuth", type: "redirect" },
|
|
230
|
+
{
|
|
231
|
+
credentialUrl: "https://app.clickup.com/settings/apps",
|
|
232
|
+
fields: [
|
|
233
|
+
{
|
|
234
|
+
input: "password",
|
|
235
|
+
label: "Personal API token",
|
|
236
|
+
name: "apiKey",
|
|
237
|
+
placeholder: "pk_...",
|
|
238
|
+
required: true,
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
id: "personal-token",
|
|
242
|
+
name: "Personal API token",
|
|
243
|
+
type: "form",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
description: "Connect a ClickUp account with OAuth or a personal API token.",
|
|
247
|
+
id: "clickup",
|
|
248
|
+
name: "ClickUp",
|
|
249
|
+
preferredConnectionMethodId: "oauth",
|
|
250
|
+
});
|
|
227
251
|
export const chatgptService = defineIntegrationService({
|
|
228
252
|
connectionMethods: [
|
|
229
253
|
{
|
|
@@ -773,6 +797,7 @@ export const integrationCatalog = defineIntegrationCatalog([
|
|
|
773
797
|
metaAdsService,
|
|
774
798
|
closeService,
|
|
775
799
|
closeBotService,
|
|
800
|
+
clickUpService,
|
|
776
801
|
codexService,
|
|
777
802
|
cohereService,
|
|
778
803
|
convexService,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, codexService, cohereService, convexService, discordService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
|
|
1
|
+
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, clickUpService, codexService, cohereService, convexService, discordService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
|
|
2
2
|
export { defineIntegrationCatalog, defineIntegrationService, integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationConnectionDefinition, type IntegrationConnectionNotice, type IntegrationFormField, type IntegrationScopeRequirement, type IntegrationServiceDefinition, type ScopeRequirementGroup, type TriggerAccountRequirement, type TriggerDefinition, type TriggerPresentation, type TriggerPresentationContext, type TriggerPresentationDetail, type TriggerScopePresentation, type TriggerPresentationValue, } from "./types.js";
|
|
3
3
|
export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, type DashboardRunConfig, type DashboardRunEndpointOptions, type DashboardRunField, type HttpTriggerEndpointOptions, type HttpTriggerScope, type MailhookAddressOptions, type MailhookScope, type TriggerType, } from "./triggers/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, codexService, cohereService, convexService, discordService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
|
|
1
|
+
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, metaAdsService, closeService, closeBotService, clickUpService, codexService, cohereService, convexService, discordService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
|
|
2
2
|
export { defineIntegrationCatalog, defineIntegrationService, integrationScope, } from "./types.js";
|
|
3
3
|
export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, } from "./triggers/index.js";
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import type { TriggerPresentationContext } from "../types.js";
|
|
2
|
+
export declare const clickUpTriggerDefinitions: {
|
|
3
|
+
readonly clickUpFolderCreated: {
|
|
4
|
+
readonly account: {
|
|
5
|
+
readonly connectionOptions: readonly [{
|
|
6
|
+
readonly connectionMethodId: "oauth";
|
|
7
|
+
readonly requiredScopes: readonly [];
|
|
8
|
+
}, {
|
|
9
|
+
readonly connectionMethodId: "personal-token";
|
|
10
|
+
readonly requiredScopes: readonly [];
|
|
11
|
+
}];
|
|
12
|
+
readonly serviceId: "clickup";
|
|
13
|
+
};
|
|
14
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
15
|
+
readonly type: "clickup.folder.created";
|
|
16
|
+
};
|
|
17
|
+
readonly clickUpFolderDeleted: {
|
|
18
|
+
readonly account: {
|
|
19
|
+
readonly connectionOptions: readonly [{
|
|
20
|
+
readonly connectionMethodId: "oauth";
|
|
21
|
+
readonly requiredScopes: readonly [];
|
|
22
|
+
}, {
|
|
23
|
+
readonly connectionMethodId: "personal-token";
|
|
24
|
+
readonly requiredScopes: readonly [];
|
|
25
|
+
}];
|
|
26
|
+
readonly serviceId: "clickup";
|
|
27
|
+
};
|
|
28
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
29
|
+
readonly type: "clickup.folder.deleted";
|
|
30
|
+
};
|
|
31
|
+
readonly clickUpFolderUpdated: {
|
|
32
|
+
readonly account: {
|
|
33
|
+
readonly connectionOptions: readonly [{
|
|
34
|
+
readonly connectionMethodId: "oauth";
|
|
35
|
+
readonly requiredScopes: readonly [];
|
|
36
|
+
}, {
|
|
37
|
+
readonly connectionMethodId: "personal-token";
|
|
38
|
+
readonly requiredScopes: readonly [];
|
|
39
|
+
}];
|
|
40
|
+
readonly serviceId: "clickup";
|
|
41
|
+
};
|
|
42
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
43
|
+
readonly type: "clickup.folder.updated";
|
|
44
|
+
};
|
|
45
|
+
readonly clickUpGoalCreated: {
|
|
46
|
+
readonly account: {
|
|
47
|
+
readonly connectionOptions: readonly [{
|
|
48
|
+
readonly connectionMethodId: "oauth";
|
|
49
|
+
readonly requiredScopes: readonly [];
|
|
50
|
+
}, {
|
|
51
|
+
readonly connectionMethodId: "personal-token";
|
|
52
|
+
readonly requiredScopes: readonly [];
|
|
53
|
+
}];
|
|
54
|
+
readonly serviceId: "clickup";
|
|
55
|
+
};
|
|
56
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
57
|
+
readonly type: "clickup.goal.created";
|
|
58
|
+
};
|
|
59
|
+
readonly clickUpGoalDeleted: {
|
|
60
|
+
readonly account: {
|
|
61
|
+
readonly connectionOptions: readonly [{
|
|
62
|
+
readonly connectionMethodId: "oauth";
|
|
63
|
+
readonly requiredScopes: readonly [];
|
|
64
|
+
}, {
|
|
65
|
+
readonly connectionMethodId: "personal-token";
|
|
66
|
+
readonly requiredScopes: readonly [];
|
|
67
|
+
}];
|
|
68
|
+
readonly serviceId: "clickup";
|
|
69
|
+
};
|
|
70
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
71
|
+
readonly type: "clickup.goal.deleted";
|
|
72
|
+
};
|
|
73
|
+
readonly clickUpGoalUpdated: {
|
|
74
|
+
readonly account: {
|
|
75
|
+
readonly connectionOptions: readonly [{
|
|
76
|
+
readonly connectionMethodId: "oauth";
|
|
77
|
+
readonly requiredScopes: readonly [];
|
|
78
|
+
}, {
|
|
79
|
+
readonly connectionMethodId: "personal-token";
|
|
80
|
+
readonly requiredScopes: readonly [];
|
|
81
|
+
}];
|
|
82
|
+
readonly serviceId: "clickup";
|
|
83
|
+
};
|
|
84
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
85
|
+
readonly type: "clickup.goal.updated";
|
|
86
|
+
};
|
|
87
|
+
readonly clickUpListCreated: {
|
|
88
|
+
readonly account: {
|
|
89
|
+
readonly connectionOptions: readonly [{
|
|
90
|
+
readonly connectionMethodId: "oauth";
|
|
91
|
+
readonly requiredScopes: readonly [];
|
|
92
|
+
}, {
|
|
93
|
+
readonly connectionMethodId: "personal-token";
|
|
94
|
+
readonly requiredScopes: readonly [];
|
|
95
|
+
}];
|
|
96
|
+
readonly serviceId: "clickup";
|
|
97
|
+
};
|
|
98
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
99
|
+
readonly type: "clickup.list.created";
|
|
100
|
+
};
|
|
101
|
+
readonly clickUpListDeleted: {
|
|
102
|
+
readonly account: {
|
|
103
|
+
readonly connectionOptions: readonly [{
|
|
104
|
+
readonly connectionMethodId: "oauth";
|
|
105
|
+
readonly requiredScopes: readonly [];
|
|
106
|
+
}, {
|
|
107
|
+
readonly connectionMethodId: "personal-token";
|
|
108
|
+
readonly requiredScopes: readonly [];
|
|
109
|
+
}];
|
|
110
|
+
readonly serviceId: "clickup";
|
|
111
|
+
};
|
|
112
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
113
|
+
readonly type: "clickup.list.deleted";
|
|
114
|
+
};
|
|
115
|
+
readonly clickUpListUpdated: {
|
|
116
|
+
readonly account: {
|
|
117
|
+
readonly connectionOptions: readonly [{
|
|
118
|
+
readonly connectionMethodId: "oauth";
|
|
119
|
+
readonly requiredScopes: readonly [];
|
|
120
|
+
}, {
|
|
121
|
+
readonly connectionMethodId: "personal-token";
|
|
122
|
+
readonly requiredScopes: readonly [];
|
|
123
|
+
}];
|
|
124
|
+
readonly serviceId: "clickup";
|
|
125
|
+
};
|
|
126
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
127
|
+
readonly type: "clickup.list.updated";
|
|
128
|
+
};
|
|
129
|
+
readonly clickUpSpaceCreated: {
|
|
130
|
+
readonly account: {
|
|
131
|
+
readonly connectionOptions: readonly [{
|
|
132
|
+
readonly connectionMethodId: "oauth";
|
|
133
|
+
readonly requiredScopes: readonly [];
|
|
134
|
+
}, {
|
|
135
|
+
readonly connectionMethodId: "personal-token";
|
|
136
|
+
readonly requiredScopes: readonly [];
|
|
137
|
+
}];
|
|
138
|
+
readonly serviceId: "clickup";
|
|
139
|
+
};
|
|
140
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
141
|
+
readonly type: "clickup.space.created";
|
|
142
|
+
};
|
|
143
|
+
readonly clickUpSpaceDeleted: {
|
|
144
|
+
readonly account: {
|
|
145
|
+
readonly connectionOptions: readonly [{
|
|
146
|
+
readonly connectionMethodId: "oauth";
|
|
147
|
+
readonly requiredScopes: readonly [];
|
|
148
|
+
}, {
|
|
149
|
+
readonly connectionMethodId: "personal-token";
|
|
150
|
+
readonly requiredScopes: readonly [];
|
|
151
|
+
}];
|
|
152
|
+
readonly serviceId: "clickup";
|
|
153
|
+
};
|
|
154
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
155
|
+
readonly type: "clickup.space.deleted";
|
|
156
|
+
};
|
|
157
|
+
readonly clickUpSpaceUpdated: {
|
|
158
|
+
readonly account: {
|
|
159
|
+
readonly connectionOptions: readonly [{
|
|
160
|
+
readonly connectionMethodId: "oauth";
|
|
161
|
+
readonly requiredScopes: readonly [];
|
|
162
|
+
}, {
|
|
163
|
+
readonly connectionMethodId: "personal-token";
|
|
164
|
+
readonly requiredScopes: readonly [];
|
|
165
|
+
}];
|
|
166
|
+
readonly serviceId: "clickup";
|
|
167
|
+
};
|
|
168
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
169
|
+
readonly type: "clickup.space.updated";
|
|
170
|
+
};
|
|
171
|
+
readonly clickUpTargetCreated: {
|
|
172
|
+
readonly account: {
|
|
173
|
+
readonly connectionOptions: readonly [{
|
|
174
|
+
readonly connectionMethodId: "oauth";
|
|
175
|
+
readonly requiredScopes: readonly [];
|
|
176
|
+
}, {
|
|
177
|
+
readonly connectionMethodId: "personal-token";
|
|
178
|
+
readonly requiredScopes: readonly [];
|
|
179
|
+
}];
|
|
180
|
+
readonly serviceId: "clickup";
|
|
181
|
+
};
|
|
182
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
183
|
+
readonly type: "clickup.target.created";
|
|
184
|
+
};
|
|
185
|
+
readonly clickUpTargetDeleted: {
|
|
186
|
+
readonly account: {
|
|
187
|
+
readonly connectionOptions: readonly [{
|
|
188
|
+
readonly connectionMethodId: "oauth";
|
|
189
|
+
readonly requiredScopes: readonly [];
|
|
190
|
+
}, {
|
|
191
|
+
readonly connectionMethodId: "personal-token";
|
|
192
|
+
readonly requiredScopes: readonly [];
|
|
193
|
+
}];
|
|
194
|
+
readonly serviceId: "clickup";
|
|
195
|
+
};
|
|
196
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
197
|
+
readonly type: "clickup.target.deleted";
|
|
198
|
+
};
|
|
199
|
+
readonly clickUpTargetUpdated: {
|
|
200
|
+
readonly account: {
|
|
201
|
+
readonly connectionOptions: readonly [{
|
|
202
|
+
readonly connectionMethodId: "oauth";
|
|
203
|
+
readonly requiredScopes: readonly [];
|
|
204
|
+
}, {
|
|
205
|
+
readonly connectionMethodId: "personal-token";
|
|
206
|
+
readonly requiredScopes: readonly [];
|
|
207
|
+
}];
|
|
208
|
+
readonly serviceId: "clickup";
|
|
209
|
+
};
|
|
210
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
211
|
+
readonly type: "clickup.target.updated";
|
|
212
|
+
};
|
|
213
|
+
readonly clickUpTaskAssigneeUpdated: {
|
|
214
|
+
readonly account: {
|
|
215
|
+
readonly connectionOptions: readonly [{
|
|
216
|
+
readonly connectionMethodId: "oauth";
|
|
217
|
+
readonly requiredScopes: readonly [];
|
|
218
|
+
}, {
|
|
219
|
+
readonly connectionMethodId: "personal-token";
|
|
220
|
+
readonly requiredScopes: readonly [];
|
|
221
|
+
}];
|
|
222
|
+
readonly serviceId: "clickup";
|
|
223
|
+
};
|
|
224
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
225
|
+
readonly type: "clickup.task.assignee.updated";
|
|
226
|
+
};
|
|
227
|
+
readonly clickUpTaskCommentPosted: {
|
|
228
|
+
readonly account: {
|
|
229
|
+
readonly connectionOptions: readonly [{
|
|
230
|
+
readonly connectionMethodId: "oauth";
|
|
231
|
+
readonly requiredScopes: readonly [];
|
|
232
|
+
}, {
|
|
233
|
+
readonly connectionMethodId: "personal-token";
|
|
234
|
+
readonly requiredScopes: readonly [];
|
|
235
|
+
}];
|
|
236
|
+
readonly serviceId: "clickup";
|
|
237
|
+
};
|
|
238
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
239
|
+
readonly type: "clickup.task.comment.posted";
|
|
240
|
+
};
|
|
241
|
+
readonly clickUpTaskCommentUpdated: {
|
|
242
|
+
readonly account: {
|
|
243
|
+
readonly connectionOptions: readonly [{
|
|
244
|
+
readonly connectionMethodId: "oauth";
|
|
245
|
+
readonly requiredScopes: readonly [];
|
|
246
|
+
}, {
|
|
247
|
+
readonly connectionMethodId: "personal-token";
|
|
248
|
+
readonly requiredScopes: readonly [];
|
|
249
|
+
}];
|
|
250
|
+
readonly serviceId: "clickup";
|
|
251
|
+
};
|
|
252
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
253
|
+
readonly type: "clickup.task.comment.updated";
|
|
254
|
+
};
|
|
255
|
+
readonly clickUpTaskCreated: {
|
|
256
|
+
readonly account: {
|
|
257
|
+
readonly connectionOptions: readonly [{
|
|
258
|
+
readonly connectionMethodId: "oauth";
|
|
259
|
+
readonly requiredScopes: readonly [];
|
|
260
|
+
}, {
|
|
261
|
+
readonly connectionMethodId: "personal-token";
|
|
262
|
+
readonly requiredScopes: readonly [];
|
|
263
|
+
}];
|
|
264
|
+
readonly serviceId: "clickup";
|
|
265
|
+
};
|
|
266
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
267
|
+
readonly type: "clickup.task.created";
|
|
268
|
+
};
|
|
269
|
+
readonly clickUpTaskDeleted: {
|
|
270
|
+
readonly account: {
|
|
271
|
+
readonly connectionOptions: readonly [{
|
|
272
|
+
readonly connectionMethodId: "oauth";
|
|
273
|
+
readonly requiredScopes: readonly [];
|
|
274
|
+
}, {
|
|
275
|
+
readonly connectionMethodId: "personal-token";
|
|
276
|
+
readonly requiredScopes: readonly [];
|
|
277
|
+
}];
|
|
278
|
+
readonly serviceId: "clickup";
|
|
279
|
+
};
|
|
280
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
281
|
+
readonly type: "clickup.task.deleted";
|
|
282
|
+
};
|
|
283
|
+
readonly clickUpTaskDueDateUpdated: {
|
|
284
|
+
readonly account: {
|
|
285
|
+
readonly connectionOptions: readonly [{
|
|
286
|
+
readonly connectionMethodId: "oauth";
|
|
287
|
+
readonly requiredScopes: readonly [];
|
|
288
|
+
}, {
|
|
289
|
+
readonly connectionMethodId: "personal-token";
|
|
290
|
+
readonly requiredScopes: readonly [];
|
|
291
|
+
}];
|
|
292
|
+
readonly serviceId: "clickup";
|
|
293
|
+
};
|
|
294
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
295
|
+
readonly type: "clickup.task.due-date.updated";
|
|
296
|
+
};
|
|
297
|
+
readonly clickUpTaskMoved: {
|
|
298
|
+
readonly account: {
|
|
299
|
+
readonly connectionOptions: readonly [{
|
|
300
|
+
readonly connectionMethodId: "oauth";
|
|
301
|
+
readonly requiredScopes: readonly [];
|
|
302
|
+
}, {
|
|
303
|
+
readonly connectionMethodId: "personal-token";
|
|
304
|
+
readonly requiredScopes: readonly [];
|
|
305
|
+
}];
|
|
306
|
+
readonly serviceId: "clickup";
|
|
307
|
+
};
|
|
308
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
309
|
+
readonly type: "clickup.task.moved";
|
|
310
|
+
};
|
|
311
|
+
readonly clickUpTaskPriorityUpdated: {
|
|
312
|
+
readonly account: {
|
|
313
|
+
readonly connectionOptions: readonly [{
|
|
314
|
+
readonly connectionMethodId: "oauth";
|
|
315
|
+
readonly requiredScopes: readonly [];
|
|
316
|
+
}, {
|
|
317
|
+
readonly connectionMethodId: "personal-token";
|
|
318
|
+
readonly requiredScopes: readonly [];
|
|
319
|
+
}];
|
|
320
|
+
readonly serviceId: "clickup";
|
|
321
|
+
};
|
|
322
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
323
|
+
readonly type: "clickup.task.priority.updated";
|
|
324
|
+
};
|
|
325
|
+
readonly clickUpTaskStatusUpdated: {
|
|
326
|
+
readonly account: {
|
|
327
|
+
readonly connectionOptions: readonly [{
|
|
328
|
+
readonly connectionMethodId: "oauth";
|
|
329
|
+
readonly requiredScopes: readonly [];
|
|
330
|
+
}, {
|
|
331
|
+
readonly connectionMethodId: "personal-token";
|
|
332
|
+
readonly requiredScopes: readonly [];
|
|
333
|
+
}];
|
|
334
|
+
readonly serviceId: "clickup";
|
|
335
|
+
};
|
|
336
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
337
|
+
readonly type: "clickup.task.status.updated";
|
|
338
|
+
};
|
|
339
|
+
readonly clickUpTaskTagUpdated: {
|
|
340
|
+
readonly account: {
|
|
341
|
+
readonly connectionOptions: readonly [{
|
|
342
|
+
readonly connectionMethodId: "oauth";
|
|
343
|
+
readonly requiredScopes: readonly [];
|
|
344
|
+
}, {
|
|
345
|
+
readonly connectionMethodId: "personal-token";
|
|
346
|
+
readonly requiredScopes: readonly [];
|
|
347
|
+
}];
|
|
348
|
+
readonly serviceId: "clickup";
|
|
349
|
+
};
|
|
350
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
351
|
+
readonly type: "clickup.task.tag.updated";
|
|
352
|
+
};
|
|
353
|
+
readonly clickUpTaskTimeEstimateUpdated: {
|
|
354
|
+
readonly account: {
|
|
355
|
+
readonly connectionOptions: readonly [{
|
|
356
|
+
readonly connectionMethodId: "oauth";
|
|
357
|
+
readonly requiredScopes: readonly [];
|
|
358
|
+
}, {
|
|
359
|
+
readonly connectionMethodId: "personal-token";
|
|
360
|
+
readonly requiredScopes: readonly [];
|
|
361
|
+
}];
|
|
362
|
+
readonly serviceId: "clickup";
|
|
363
|
+
};
|
|
364
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
365
|
+
readonly type: "clickup.task.time-estimate.updated";
|
|
366
|
+
};
|
|
367
|
+
readonly clickUpTaskTimeTrackedUpdated: {
|
|
368
|
+
readonly account: {
|
|
369
|
+
readonly connectionOptions: readonly [{
|
|
370
|
+
readonly connectionMethodId: "oauth";
|
|
371
|
+
readonly requiredScopes: readonly [];
|
|
372
|
+
}, {
|
|
373
|
+
readonly connectionMethodId: "personal-token";
|
|
374
|
+
readonly requiredScopes: readonly [];
|
|
375
|
+
}];
|
|
376
|
+
readonly serviceId: "clickup";
|
|
377
|
+
};
|
|
378
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
379
|
+
readonly type: "clickup.task.time-tracked.updated";
|
|
380
|
+
};
|
|
381
|
+
readonly clickUpTaskUpdated: {
|
|
382
|
+
readonly account: {
|
|
383
|
+
readonly connectionOptions: readonly [{
|
|
384
|
+
readonly connectionMethodId: "oauth";
|
|
385
|
+
readonly requiredScopes: readonly [];
|
|
386
|
+
}, {
|
|
387
|
+
readonly connectionMethodId: "personal-token";
|
|
388
|
+
readonly requiredScopes: readonly [];
|
|
389
|
+
}];
|
|
390
|
+
readonly serviceId: "clickup";
|
|
391
|
+
};
|
|
392
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
393
|
+
readonly type: "clickup.task.updated";
|
|
394
|
+
};
|
|
395
|
+
readonly clickUpWorkspaceEvent: {
|
|
396
|
+
readonly account: {
|
|
397
|
+
readonly connectionOptions: readonly [{
|
|
398
|
+
readonly connectionMethodId: "oauth";
|
|
399
|
+
readonly requiredScopes: readonly [];
|
|
400
|
+
}, {
|
|
401
|
+
readonly connectionMethodId: "personal-token";
|
|
402
|
+
readonly requiredScopes: readonly [];
|
|
403
|
+
}];
|
|
404
|
+
readonly serviceId: "clickup";
|
|
405
|
+
};
|
|
406
|
+
readonly getPrimary: typeof clickUpWorkspacePrimary;
|
|
407
|
+
readonly type: "clickup.workspace.event";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Reads a trigger's configured ClickUp Workspace for presentation.
|
|
412
|
+
*
|
|
413
|
+
* @param context - Resolved trigger presentation context.
|
|
414
|
+
* @throws When canonical trigger configuration is missing its Workspace ID.
|
|
415
|
+
*/
|
|
416
|
+
declare function clickUpWorkspacePrimary(context: TriggerPresentationContext): {
|
|
417
|
+
copyable: boolean;
|
|
418
|
+
value: string;
|
|
419
|
+
};
|
|
420
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const CLICKUP_ACCOUNT = {
|
|
2
|
+
connectionOptions: [
|
|
3
|
+
{ connectionMethodId: "oauth", requiredScopes: [] },
|
|
4
|
+
{ connectionMethodId: "personal-token", requiredScopes: [] },
|
|
5
|
+
],
|
|
6
|
+
serviceId: "clickup",
|
|
7
|
+
};
|
|
8
|
+
export const clickUpTriggerDefinitions = {
|
|
9
|
+
clickUpFolderCreated: definition("clickup.folder.created"),
|
|
10
|
+
clickUpFolderDeleted: definition("clickup.folder.deleted"),
|
|
11
|
+
clickUpFolderUpdated: definition("clickup.folder.updated"),
|
|
12
|
+
clickUpGoalCreated: definition("clickup.goal.created"),
|
|
13
|
+
clickUpGoalDeleted: definition("clickup.goal.deleted"),
|
|
14
|
+
clickUpGoalUpdated: definition("clickup.goal.updated"),
|
|
15
|
+
clickUpListCreated: definition("clickup.list.created"),
|
|
16
|
+
clickUpListDeleted: definition("clickup.list.deleted"),
|
|
17
|
+
clickUpListUpdated: definition("clickup.list.updated"),
|
|
18
|
+
clickUpSpaceCreated: definition("clickup.space.created"),
|
|
19
|
+
clickUpSpaceDeleted: definition("clickup.space.deleted"),
|
|
20
|
+
clickUpSpaceUpdated: definition("clickup.space.updated"),
|
|
21
|
+
clickUpTargetCreated: definition("clickup.target.created"),
|
|
22
|
+
clickUpTargetDeleted: definition("clickup.target.deleted"),
|
|
23
|
+
clickUpTargetUpdated: definition("clickup.target.updated"),
|
|
24
|
+
clickUpTaskAssigneeUpdated: definition("clickup.task.assignee.updated"),
|
|
25
|
+
clickUpTaskCommentPosted: definition("clickup.task.comment.posted"),
|
|
26
|
+
clickUpTaskCommentUpdated: definition("clickup.task.comment.updated"),
|
|
27
|
+
clickUpTaskCreated: definition("clickup.task.created"),
|
|
28
|
+
clickUpTaskDeleted: definition("clickup.task.deleted"),
|
|
29
|
+
clickUpTaskDueDateUpdated: definition("clickup.task.due-date.updated"),
|
|
30
|
+
clickUpTaskMoved: definition("clickup.task.moved"),
|
|
31
|
+
clickUpTaskPriorityUpdated: definition("clickup.task.priority.updated"),
|
|
32
|
+
clickUpTaskStatusUpdated: definition("clickup.task.status.updated"),
|
|
33
|
+
clickUpTaskTagUpdated: definition("clickup.task.tag.updated"),
|
|
34
|
+
clickUpTaskTimeEstimateUpdated: definition("clickup.task.time-estimate.updated"),
|
|
35
|
+
clickUpTaskTimeTrackedUpdated: definition("clickup.task.time-tracked.updated"),
|
|
36
|
+
clickUpTaskUpdated: definition("clickup.task.updated"),
|
|
37
|
+
clickUpWorkspaceEvent: definition("clickup.workspace.event"),
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Builds one full-permission ClickUp trigger definition.
|
|
41
|
+
*
|
|
42
|
+
* @param type - Internal event type.
|
|
43
|
+
*/
|
|
44
|
+
function definition(type) {
|
|
45
|
+
return {
|
|
46
|
+
account: CLICKUP_ACCOUNT,
|
|
47
|
+
getPrimary: clickUpWorkspacePrimary,
|
|
48
|
+
type,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Reads a trigger's configured ClickUp Workspace for presentation.
|
|
53
|
+
*
|
|
54
|
+
* @param context - Resolved trigger presentation context.
|
|
55
|
+
* @throws When canonical trigger configuration is missing its Workspace ID.
|
|
56
|
+
*/
|
|
57
|
+
function clickUpWorkspacePrimary(context) {
|
|
58
|
+
if (typeof context.config !== "object" ||
|
|
59
|
+
context.config === null ||
|
|
60
|
+
!("workspaceId" in context.config) ||
|
|
61
|
+
typeof context.config.workspaceId !== "string") {
|
|
62
|
+
throw new TypeError("ClickUp trigger configuration requires a Workspace ID.");
|
|
63
|
+
}
|
|
64
|
+
return { copyable: true, value: context.config.workspaceId };
|
|
65
|
+
}
|