@friggframework/core 2.0.0--canary.700.80ec1cc.0 → 2.0.0--canary.702.047d3c4.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/database/documentdb-utils.js +1 -6
- package/errors/index.js +0 -4
- package/generated/prisma-mongodb/edge.js +4 -52
- package/generated/prisma-mongodb/index-browser.js +1 -49
- package/generated/prisma-mongodb/index.d.ts +60 -3506
- package/generated/prisma-mongodb/index.js +4 -52
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +0 -65
- package/generated/prisma-mongodb/wasm.js +4 -52
- package/generated/prisma-postgresql/edge.js +4 -52
- package/generated/prisma-postgresql/index-browser.js +1 -49
- package/generated/prisma-postgresql/index.d.ts +94 -3824
- package/generated/prisma-postgresql/index.js +4 -52
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +0 -63
- package/generated/prisma-postgresql/wasm.js +4 -52
- package/handlers/WEBHOOKS.md +0 -29
- package/handlers/app-definition-loader.js +9 -2
- package/handlers/app-handler-helpers.js +2 -5
- package/handlers/integration-event-dispatcher.js +3 -7
- package/handlers/routers/integration-webhook-routers.js +38 -26
- package/index.js +0 -2
- package/integrations/integration-base.js +1 -162
- package/integrations/integration-router.js +1 -6
- package/integrations/repositories/integration-mapping-repository-documentdb.js +0 -50
- package/integrations/repositories/integration-mapping-repository-interface.js +0 -15
- package/integrations/repositories/integration-mapping-repository-mongo.js +0 -29
- package/integrations/repositories/integration-mapping-repository-postgres.js +0 -30
- package/integrations/repositories/integration-mapping-repository.js +0 -29
- package/integrations/repositories/integration-repository-documentdb.js +2 -6
- package/integrations/repositories/integration-repository-interface.js +0 -3
- package/integrations/repositories/integration-repository-mongo.js +5 -20
- package/integrations/repositories/integration-repository-postgres.js +1 -5
- package/integrations/repositories/process-repository-mongo.js +1 -1
- package/integrations/use-cases/create-integration.js +4 -14
- package/integrations/use-cases/delete-integration-for-user.js +4 -4
- package/integrations/use-cases/get-integration-for-user.js +2 -4
- package/integrations/use-cases/get-integration-instance.js +4 -4
- package/integrations/use-cases/get-integrations-for-user.js +4 -4
- package/integrations/use-cases/get-possible-integrations.js +2 -7
- package/integrations/use-cases/update-integration.js +4 -4
- package/package.json +6 -6
- package/prisma-mongodb/schema.prisma +0 -65
- package/prisma-postgresql/schema.prisma +0 -63
- package/queues/queuer-util.js +2 -9
- package/errors/mapping-already-exists-error.js +0 -14
- package/handlers/workers/integration-triggers.js +0 -25
- package/infrastructure/scheduler/recurrence.js +0 -204
- package/integrations/definitions/README.md +0 -278
- package/integrations/definitions/canonical.js +0 -11
- package/integrations/definitions/capabilities/AUDIT.md +0 -480
- package/integrations/definitions/capabilities/acmeerp.capabilities.json +0 -633
- package/integrations/definitions/capabilities/asana.capabilities.json +0 -279
- package/integrations/definitions/capabilities/calendly.capabilities.json +0 -385
- package/integrations/definitions/capabilities/docusign.capabilities.json +0 -314
- package/integrations/definitions/capabilities/fathom.capabilities.json +0 -238
- package/integrations/definitions/capabilities/github.capabilities.json +0 -585
- package/integrations/definitions/capabilities/hubspot.capabilities.json +0 -822
- package/integrations/definitions/capabilities/jira.capabilities.json +0 -391
- package/integrations/definitions/capabilities/klaviyo.capabilities.json +0 -503
- package/integrations/definitions/capabilities/linear.capabilities.json +0 -378
- package/integrations/definitions/capabilities/netsuite.capabilities.json +0 -535
- package/integrations/definitions/capabilities/notion.capabilities.json +0 -208
- package/integrations/definitions/capabilities/phone.capabilities.json +0 -511
- package/integrations/definitions/capabilities/pipedrive.capabilities.json +0 -430
- package/integrations/definitions/capabilities/quickbooks.capabilities.json +0 -635
- package/integrations/definitions/capabilities/salesforce.capabilities.json +0 -568
- package/integrations/definitions/capabilities/shopify.capabilities.json +0 -1128
- package/integrations/definitions/capabilities/slack.capabilities.json +0 -373
- package/integrations/definitions/capabilities/stripe.capabilities.json +0 -630
- package/integrations/definitions/capabilities/webflow.capabilities.json +0 -196
- package/integrations/definitions/capabilities/zendesk.capabilities.json +0 -422
- package/integrations/definitions/compile.js +0 -80
- package/integrations/definitions/config-form.js +0 -137
- package/integrations/definitions/examples/acme-erp-quickbooks.definition.json +0 -467
- package/integrations/definitions/examples/asana-slack.definition.json +0 -219
- package/integrations/definitions/examples/calendly-salesforce.definition.json +0 -459
- package/integrations/definitions/examples/docusign-salesforce.definition.json +0 -305
- package/integrations/definitions/examples/fathom-hubspot-notion.definition.json +0 -575
- package/integrations/definitions/examples/github-linear.definition.json +0 -322
- package/integrations/definitions/examples/hubspot-slack.definition.json +0 -427
- package/integrations/definitions/examples/klaviyo-hubspot.definition.json +0 -336
- package/integrations/definitions/examples/phone-hubspot.definition.json +0 -633
- package/integrations/definitions/examples/pipedrive-hubspot.definition.json +0 -136
- package/integrations/definitions/examples/pipedrive-phone.definition.json +0 -340
- package/integrations/definitions/examples/records/phone-hubspot.definition-version.json +0 -652
- package/integrations/definitions/examples/records/phone-hubspot.integration.json +0 -86
- package/integrations/definitions/examples/records/phone-hubspot.mappings.json +0 -39
- package/integrations/definitions/examples/records/phone-hubspot.workflow-run.json +0 -62
- package/integrations/definitions/examples/shopify-klaviyo.definition.json +0 -488
- package/integrations/definitions/examples/shopify-netsuite.definition.json +0 -622
- package/integrations/definitions/examples/stripe-quickbooks.definition.json +0 -476
- package/integrations/definitions/examples/webflow-hubspot-slack.definition.json +0 -262
- package/integrations/definitions/examples/zendesk-jira.definition.json +0 -604
- package/integrations/definitions/expressions.js +0 -229
- package/integrations/definitions/index.js +0 -45
- package/integrations/definitions/integration-runtime.js +0 -763
- package/integrations/definitions/interpreter.js +0 -104
- package/integrations/definitions/manifests.js +0 -177
- package/integrations/definitions/renderers/common.js +0 -67
- package/integrations/definitions/renderers/html.js +0 -129
- package/integrations/definitions/renderers/hubspot.js +0 -59
- package/integrations/definitions/renderers/preview.js +0 -154
- package/integrations/definitions/renderers/slack.js +0 -146
- package/integrations/definitions/repositories/definition-version-repository.js +0 -67
- package/integrations/definitions/repositories/workflow-run-repository.js +0 -80
- package/integrations/definitions/router.js +0 -170
- package/integrations/definitions/runtime.js +0 -268
- package/integrations/definitions/schema/capability-manifest.v0.1.schema.json +0 -549
- package/integrations/definitions/schema/installation.v0.1.schema.json +0 -130
- package/integrations/definitions/schema/integration-definition.v0.1.schema.json +0 -909
- package/integrations/definitions/schema/records.md +0 -105
- package/integrations/definitions/schema-check.js +0 -58
- package/integrations/definitions/scripts/check-manifests.js +0 -220
- package/integrations/definitions/scripts/validate.js +0 -66
- package/integrations/definitions/steps.js +0 -123
- package/integrations/definitions/sync-engine.js +0 -297
- package/integrations/definitions/tests/helpers-fake-crm.js +0 -49
- package/integrations/definitions/transforms.js +0 -91
- package/integrations/definitions/use-cases/definition-use-cases.js +0 -245
- package/integrations/definitions/validate.js +0 -436
- package/integrations/definitions/versioning.js +0 -176
- package/integrations/definitions/webhooks.js +0 -119
- package/integrations/integration-types.js +0 -64
- package/integrations/triggers.js +0 -244
- package/integrations/use-cases/run-trigger-tick.js +0 -155
- package/integrations/use-cases/run-trigger.js +0 -77
- package/prisma-postgresql/migrations/20261018000000_add_data_defined_integrations/migration.sql +0 -66
- package/prisma-postgresql/migrations/20261019000000_workflow_run_waits/migration.sql +0 -7
- package/prisma-postgresql/migrations/20261019120000_definition_workspace/migration.sql +0 -5
|
@@ -1,822 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
|
|
3
|
-
"module": "hubspot",
|
|
4
|
-
"label": "HubSpot",
|
|
5
|
-
"package": "@friggframework/api-module-hubspot",
|
|
6
|
-
"version": "1.4.0",
|
|
7
|
-
"auth": "oauth2",
|
|
8
|
-
"account": {
|
|
9
|
-
"description": "Values about the connected account, persisted by the module (apiPropertiesToPersist). Definitions read them as $.install.accounts.<module key>.<name>.",
|
|
10
|
-
"fields": [
|
|
11
|
-
{
|
|
12
|
-
"name": "portalId",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "HubSpot portal (hub) id"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"objects": {
|
|
19
|
-
"contact": {
|
|
20
|
-
"label": "Contact",
|
|
21
|
-
"fields": [
|
|
22
|
-
{
|
|
23
|
-
"name": "id",
|
|
24
|
-
"type": "id",
|
|
25
|
-
"readOnly": true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "properties.email",
|
|
29
|
-
"type": "email",
|
|
30
|
-
"tag": "contact.email"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "properties.firstname",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"tag": "person.givenName"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "properties.lastname",
|
|
39
|
-
"type": "string",
|
|
40
|
-
"tag": "person.familyName"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "properties.phone",
|
|
44
|
-
"type": "phone",
|
|
45
|
-
"tag": "contact.phone"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "properties.mobilephone",
|
|
49
|
-
"type": "phone",
|
|
50
|
-
"tag": "contact.phone"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "properties.company",
|
|
54
|
-
"type": "string",
|
|
55
|
-
"tag": "organization.name"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "properties.lifecyclestage",
|
|
59
|
-
"type": "enum",
|
|
60
|
-
"tag": "contact.lifecycleStage",
|
|
61
|
-
"values": [
|
|
62
|
-
"subscriber",
|
|
63
|
-
"lead",
|
|
64
|
-
"marketingqualifiedlead",
|
|
65
|
-
"salesqualifiedlead",
|
|
66
|
-
"opportunity",
|
|
67
|
-
"customer"
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "properties.hubspot_owner_id",
|
|
72
|
-
"type": "string",
|
|
73
|
-
"tag": "record.owner"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "properties.notes_last_contacted",
|
|
77
|
-
"type": "datetime",
|
|
78
|
-
"tag": "activity.lastContactedAt",
|
|
79
|
-
"readOnly": true
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "properties.phone_last_call",
|
|
83
|
-
"type": "datetime",
|
|
84
|
-
"custom": true
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"name": "properties.jobtitle",
|
|
88
|
-
"type": "string",
|
|
89
|
-
"tag": "person.jobTitle"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "properties.city",
|
|
93
|
-
"type": "string",
|
|
94
|
-
"tag": "address.locality"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "properties.hs_lead_status",
|
|
98
|
-
"type": "enum",
|
|
99
|
-
"tag": "contact.leadStatus",
|
|
100
|
-
"values": [
|
|
101
|
-
"NEW",
|
|
102
|
-
"OPEN",
|
|
103
|
-
"IN_PROGRESS",
|
|
104
|
-
"OPEN_DEAL",
|
|
105
|
-
"UNQUALIFIED",
|
|
106
|
-
"ATTEMPTED_TO_CONTACT",
|
|
107
|
-
"CONNECTED",
|
|
108
|
-
"BAD_TIMING"
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "properties.hs_email_optout",
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"tag": "contact.emailOptOut",
|
|
115
|
-
"readOnly": true
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"sync": {
|
|
119
|
-
"id": "id",
|
|
120
|
-
"updatedAt": "updatedAt",
|
|
121
|
-
"list": {
|
|
122
|
-
"capability": "contact.list",
|
|
123
|
-
"cursor": "after",
|
|
124
|
-
"limit": "limit",
|
|
125
|
-
"since": "updatedSince",
|
|
126
|
-
"items": "results",
|
|
127
|
-
"next": "paging.next.after"
|
|
128
|
-
},
|
|
129
|
-
"get": {
|
|
130
|
-
"capability": "contact.get",
|
|
131
|
-
"id": "id"
|
|
132
|
-
},
|
|
133
|
-
"search": {
|
|
134
|
-
"capability": "contact.search"
|
|
135
|
-
},
|
|
136
|
-
"create": {
|
|
137
|
-
"capability": "contact.create"
|
|
138
|
-
},
|
|
139
|
-
"update": {
|
|
140
|
-
"capability": "contact.update",
|
|
141
|
-
"id": "id"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"deal": {
|
|
146
|
-
"label": "Deal",
|
|
147
|
-
"fields": [
|
|
148
|
-
{
|
|
149
|
-
"name": "id",
|
|
150
|
-
"type": "id",
|
|
151
|
-
"readOnly": true
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "properties.dealname",
|
|
155
|
-
"type": "string",
|
|
156
|
-
"tag": "deal.name"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "properties.amount",
|
|
160
|
-
"type": "number",
|
|
161
|
-
"tag": "deal.amount"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"name": "properties.dealstage",
|
|
165
|
-
"type": "enum",
|
|
166
|
-
"tag": "deal.stage",
|
|
167
|
-
"values": "dealStage"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"name": "properties.closedate",
|
|
171
|
-
"type": "date",
|
|
172
|
-
"tag": "deal.closeDate"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "properties.hubspot_owner_id",
|
|
176
|
-
"type": "string",
|
|
177
|
-
"tag": "record.owner"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "properties.pipeline",
|
|
181
|
-
"type": "string",
|
|
182
|
-
"tag": "deal.pipeline"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"name": "properties.hs_next_step",
|
|
186
|
-
"type": "text",
|
|
187
|
-
"tag": "deal.nextStep"
|
|
188
|
-
}
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
"company": {
|
|
192
|
-
"label": "Company",
|
|
193
|
-
"fields": [
|
|
194
|
-
{
|
|
195
|
-
"name": "id",
|
|
196
|
-
"type": "id",
|
|
197
|
-
"readOnly": true
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"name": "properties.name",
|
|
201
|
-
"type": "string",
|
|
202
|
-
"tag": "organization.name"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "properties.domain",
|
|
206
|
-
"type": "string",
|
|
207
|
-
"tag": "organization.domain"
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
|
-
"task": {
|
|
212
|
-
"label": "Task",
|
|
213
|
-
"fields": [
|
|
214
|
-
{
|
|
215
|
-
"name": "id",
|
|
216
|
-
"type": "id",
|
|
217
|
-
"readOnly": true
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"name": "properties.hs_task_subject",
|
|
221
|
-
"type": "string",
|
|
222
|
-
"required": true
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"name": "properties.hs_task_body",
|
|
226
|
-
"type": "text"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "properties.hs_timestamp",
|
|
230
|
-
"type": "datetime",
|
|
231
|
-
"required": true
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "properties.hubspot_owner_id",
|
|
235
|
-
"type": "string"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "properties.hs_task_status",
|
|
239
|
-
"type": "enum",
|
|
240
|
-
"tag": "task.status",
|
|
241
|
-
"values": [
|
|
242
|
-
"NOT_STARTED",
|
|
243
|
-
"IN_PROGRESS",
|
|
244
|
-
"WAITING",
|
|
245
|
-
"COMPLETED",
|
|
246
|
-
"DEFERRED"
|
|
247
|
-
]
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"name": "properties.hs_task_priority",
|
|
251
|
-
"type": "enum",
|
|
252
|
-
"tag": "task.priority",
|
|
253
|
-
"values": [
|
|
254
|
-
"LOW",
|
|
255
|
-
"MEDIUM",
|
|
256
|
-
"HIGH"
|
|
257
|
-
]
|
|
258
|
-
}
|
|
259
|
-
]
|
|
260
|
-
},
|
|
261
|
-
"call": {
|
|
262
|
-
"label": "Call engagement",
|
|
263
|
-
"fields": [
|
|
264
|
-
{
|
|
265
|
-
"name": "id",
|
|
266
|
-
"type": "id",
|
|
267
|
-
"readOnly": true
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"name": "properties.hs_call_title",
|
|
271
|
-
"type": "string"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"name": "properties.hs_call_body",
|
|
275
|
-
"type": "text"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"name": "properties.hs_call_duration",
|
|
279
|
-
"type": "number"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"name": "properties.hs_call_direction",
|
|
283
|
-
"type": "enum",
|
|
284
|
-
"values": [
|
|
285
|
-
"INBOUND",
|
|
286
|
-
"OUTBOUND"
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "properties.hs_call_recording_url",
|
|
291
|
-
"type": "string"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"name": "properties.hs_timestamp",
|
|
295
|
-
"type": "datetime",
|
|
296
|
-
"required": true
|
|
297
|
-
}
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
"note": {
|
|
301
|
-
"label": "Note",
|
|
302
|
-
"fields": [
|
|
303
|
-
{
|
|
304
|
-
"name": "id",
|
|
305
|
-
"type": "id",
|
|
306
|
-
"readOnly": true
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"name": "properties.hs_note_body",
|
|
310
|
-
"type": "text",
|
|
311
|
-
"required": true
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"name": "properties.hs_timestamp",
|
|
315
|
-
"type": "datetime",
|
|
316
|
-
"required": true
|
|
317
|
-
}
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
"events": {
|
|
322
|
-
"contact.created": {
|
|
323
|
-
"delivery": "webhook",
|
|
324
|
-
"object": "contact",
|
|
325
|
-
"description": "App-level subscription; Frigg routes it to the installation by portalId.",
|
|
326
|
-
"payload": [
|
|
327
|
-
{
|
|
328
|
-
"portalId": 12345678,
|
|
329
|
-
"objectId": "51",
|
|
330
|
-
"subscriptionType": "contact.creation",
|
|
331
|
-
"occurredAt": 1760800000000,
|
|
332
|
-
"eventId": 9001
|
|
333
|
-
}
|
|
334
|
-
],
|
|
335
|
-
"match": "contact.creation",
|
|
336
|
-
"recordId": "objectId"
|
|
337
|
-
},
|
|
338
|
-
"contact.propertyChange": {
|
|
339
|
-
"delivery": "webhook",
|
|
340
|
-
"object": "contact",
|
|
341
|
-
"payload": [
|
|
342
|
-
{
|
|
343
|
-
"portalId": 12345678,
|
|
344
|
-
"objectId": "51",
|
|
345
|
-
"propertyName": "phone",
|
|
346
|
-
"propertyValue": "+15125550142",
|
|
347
|
-
"occurredAt": 1760800000000,
|
|
348
|
-
"eventId": 9002,
|
|
349
|
-
"subscriptionType": "contact.propertyChange"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
"recordId": "objectId"
|
|
353
|
-
},
|
|
354
|
-
"deal.propertyChange": {
|
|
355
|
-
"delivery": "webhook",
|
|
356
|
-
"object": "deal",
|
|
357
|
-
"payload": [
|
|
358
|
-
{
|
|
359
|
-
"portalId": 12345678,
|
|
360
|
-
"objectId": "880",
|
|
361
|
-
"propertyName": "dealstage",
|
|
362
|
-
"propertyValue": "closedwon",
|
|
363
|
-
"occurredAt": 1760800000000,
|
|
364
|
-
"eventId": 9003,
|
|
365
|
-
"subscriptionType": "deal.propertyChange"
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
"deal.created": {
|
|
370
|
-
"delivery": "webhook",
|
|
371
|
-
"object": "deal",
|
|
372
|
-
"payload": [
|
|
373
|
-
{
|
|
374
|
-
"portalId": 12345678,
|
|
375
|
-
"objectId": "881",
|
|
376
|
-
"occurredAt": 1760800000000,
|
|
377
|
-
"eventId": 9004,
|
|
378
|
-
"subscriptionType": "deal.creation"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
"match": "deal.creation"
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
"webhook": {
|
|
385
|
-
"scope": "app",
|
|
386
|
-
"batch": "body",
|
|
387
|
-
"topic": "{{item.subscriptionType}}",
|
|
388
|
-
"eventId": "{{item.eventId}}",
|
|
389
|
-
"account": "{{item.portalId}}",
|
|
390
|
-
"verify": "verifyWebhookSignature",
|
|
391
|
-
"note": "HubSpot v3: X-HubSpot-Signature-v3 over method + URL + raw body + timestamp, 5 minutes. Needs the public URL and method (the runtime passes them). Implemented in api-module-library 659b90d; needs the module release that includes it."
|
|
392
|
-
},
|
|
393
|
-
"capabilities": {
|
|
394
|
-
"contact.get": {
|
|
395
|
-
"kind": "read",
|
|
396
|
-
"method": "getContactById",
|
|
397
|
-
"input": {
|
|
398
|
-
"id": {
|
|
399
|
-
"type": "string",
|
|
400
|
-
"required": true
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
"output": "contact",
|
|
404
|
-
"args": [
|
|
405
|
-
"id"
|
|
406
|
-
],
|
|
407
|
-
"note": "Api.getContactById(id) always requests the portal's full property list; a properties argument is not supported."
|
|
408
|
-
},
|
|
409
|
-
"contact.search": {
|
|
410
|
-
"kind": "search",
|
|
411
|
-
"method": "searchContacts",
|
|
412
|
-
"input": {
|
|
413
|
-
"email": {
|
|
414
|
-
"type": "string"
|
|
415
|
-
},
|
|
416
|
-
"phone": {
|
|
417
|
-
"type": "string"
|
|
418
|
-
},
|
|
419
|
-
"limit": {
|
|
420
|
-
"type": "number"
|
|
421
|
-
},
|
|
422
|
-
"lastContactedBefore": {
|
|
423
|
-
"type": "string"
|
|
424
|
-
},
|
|
425
|
-
"properties": {
|
|
426
|
-
"type": "array"
|
|
427
|
-
},
|
|
428
|
-
"after": {
|
|
429
|
-
"type": "string"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
"output": "{ total, results: contact[], paging }"
|
|
433
|
-
},
|
|
434
|
-
"contact.list": {
|
|
435
|
-
"kind": "read",
|
|
436
|
-
"method": "listContacts",
|
|
437
|
-
"input": {
|
|
438
|
-
"after": {
|
|
439
|
-
"type": "string"
|
|
440
|
-
},
|
|
441
|
-
"limit": {
|
|
442
|
-
"type": "number"
|
|
443
|
-
},
|
|
444
|
-
"updatedSince": {
|
|
445
|
-
"type": "string"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
"output": "page<contact>",
|
|
449
|
-
"note": "Api.listContacts({ after, limit, properties }) has no modified-since filter, so updatedSince is ignored and a poll re-lists every contact."
|
|
450
|
-
},
|
|
451
|
-
"contact.create": {
|
|
452
|
-
"kind": "write",
|
|
453
|
-
"method": "createContact",
|
|
454
|
-
"input": {
|
|
455
|
-
"properties": {
|
|
456
|
-
"type": "object",
|
|
457
|
-
"required": true
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
"output": "contact",
|
|
461
|
-
"args": [
|
|
462
|
-
"properties"
|
|
463
|
-
]
|
|
464
|
-
},
|
|
465
|
-
"contact.update": {
|
|
466
|
-
"kind": "write",
|
|
467
|
-
"method": "updateContact",
|
|
468
|
-
"input": {
|
|
469
|
-
"id": {
|
|
470
|
-
"type": "string",
|
|
471
|
-
"required": true
|
|
472
|
-
},
|
|
473
|
-
"properties": {
|
|
474
|
-
"type": "object",
|
|
475
|
-
"required": true
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
"output": "contact",
|
|
479
|
-
"args": [
|
|
480
|
-
"id",
|
|
481
|
-
"properties"
|
|
482
|
-
]
|
|
483
|
-
},
|
|
484
|
-
"deal.get": {
|
|
485
|
-
"kind": "read",
|
|
486
|
-
"method": "getDealById",
|
|
487
|
-
"input": {
|
|
488
|
-
"id": {
|
|
489
|
-
"type": "string",
|
|
490
|
-
"required": true
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
"output": "deal",
|
|
494
|
-
"args": [
|
|
495
|
-
"id"
|
|
496
|
-
]
|
|
497
|
-
},
|
|
498
|
-
"deal.listForContact": {
|
|
499
|
-
"kind": "read",
|
|
500
|
-
"method": "listDealsForContact",
|
|
501
|
-
"input": {
|
|
502
|
-
"contactId": {
|
|
503
|
-
"type": "string",
|
|
504
|
-
"required": true
|
|
505
|
-
},
|
|
506
|
-
"open": {
|
|
507
|
-
"type": "boolean"
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
"output": "deal[]",
|
|
511
|
-
"args": [
|
|
512
|
-
"contactId",
|
|
513
|
-
"open"
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
"deal.contacts": {
|
|
517
|
-
"kind": "read",
|
|
518
|
-
"method": "listContactsForDeal",
|
|
519
|
-
"input": {
|
|
520
|
-
"dealId": {
|
|
521
|
-
"type": "string",
|
|
522
|
-
"required": true
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
"output": "contact[]",
|
|
526
|
-
"args": [
|
|
527
|
-
"dealId"
|
|
528
|
-
]
|
|
529
|
-
},
|
|
530
|
-
"task.create": {
|
|
531
|
-
"kind": "write",
|
|
532
|
-
"method": "createTask",
|
|
533
|
-
"input": {
|
|
534
|
-
"properties": {
|
|
535
|
-
"type": "object",
|
|
536
|
-
"required": true
|
|
537
|
-
},
|
|
538
|
-
"contactId": {
|
|
539
|
-
"type": "string"
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
"output": "task",
|
|
543
|
-
"args": [
|
|
544
|
-
"properties",
|
|
545
|
-
"contactId"
|
|
546
|
-
]
|
|
547
|
-
},
|
|
548
|
-
"call.create": {
|
|
549
|
-
"kind": "write",
|
|
550
|
-
"method": "createCallEngagement",
|
|
551
|
-
"input": {
|
|
552
|
-
"properties": {
|
|
553
|
-
"type": "object",
|
|
554
|
-
"required": true
|
|
555
|
-
},
|
|
556
|
-
"contactId": {
|
|
557
|
-
"type": "string",
|
|
558
|
-
"required": true
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
"output": "call",
|
|
562
|
-
"args": [
|
|
563
|
-
"properties",
|
|
564
|
-
"contactId"
|
|
565
|
-
]
|
|
566
|
-
},
|
|
567
|
-
"note.create": {
|
|
568
|
-
"kind": "write",
|
|
569
|
-
"method": "createNote",
|
|
570
|
-
"input": {
|
|
571
|
-
"properties": {
|
|
572
|
-
"type": "object",
|
|
573
|
-
"required": true
|
|
574
|
-
},
|
|
575
|
-
"contactId": {
|
|
576
|
-
"type": "string"
|
|
577
|
-
},
|
|
578
|
-
"dealId": {
|
|
579
|
-
"type": "string"
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
"output": "note",
|
|
583
|
-
"args": [
|
|
584
|
-
"properties",
|
|
585
|
-
"contactId",
|
|
586
|
-
"dealId"
|
|
587
|
-
]
|
|
588
|
-
},
|
|
589
|
-
"owner.list": {
|
|
590
|
-
"kind": "read",
|
|
591
|
-
"method": "listOwners",
|
|
592
|
-
"input": {},
|
|
593
|
-
"output": "owner[]",
|
|
594
|
-
"args": []
|
|
595
|
-
},
|
|
596
|
-
"pipeline.stages": {
|
|
597
|
-
"kind": "read",
|
|
598
|
-
"method": "listDealStages",
|
|
599
|
-
"input": {
|
|
600
|
-
"pipelineId": {
|
|
601
|
-
"type": "string"
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
"output": "stage[]",
|
|
605
|
-
"args": [
|
|
606
|
-
"pipelineId"
|
|
607
|
-
]
|
|
608
|
-
},
|
|
609
|
-
"contact.upsertByEmail": {
|
|
610
|
-
"kind": "write",
|
|
611
|
-
"method": "upsertContactByEmail",
|
|
612
|
-
"label": "Batch upsert with idProperty=email",
|
|
613
|
-
"input": {
|
|
614
|
-
"email": {
|
|
615
|
-
"type": "string",
|
|
616
|
-
"required": true
|
|
617
|
-
},
|
|
618
|
-
"properties": {
|
|
619
|
-
"type": "object",
|
|
620
|
-
"required": true
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
"output": "contact",
|
|
624
|
-
"args": [
|
|
625
|
-
"email",
|
|
626
|
-
"properties"
|
|
627
|
-
]
|
|
628
|
-
},
|
|
629
|
-
"deal.update": {
|
|
630
|
-
"kind": "write",
|
|
631
|
-
"method": "updateDeal",
|
|
632
|
-
"input": {
|
|
633
|
-
"dealId": {
|
|
634
|
-
"type": "string",
|
|
635
|
-
"required": true
|
|
636
|
-
},
|
|
637
|
-
"properties": {
|
|
638
|
-
"type": "object",
|
|
639
|
-
"required": true
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
"output": "deal",
|
|
643
|
-
"note": "Api.updateDeal({ dealId, properties }) takes one object, so the input is dealId (it was id)."
|
|
644
|
-
},
|
|
645
|
-
"deal.search": {
|
|
646
|
-
"kind": "search",
|
|
647
|
-
"method": "searchDeals",
|
|
648
|
-
"input": {
|
|
649
|
-
"filterGroups": {
|
|
650
|
-
"type": "array"
|
|
651
|
-
},
|
|
652
|
-
"sorts": {
|
|
653
|
-
"type": "array"
|
|
654
|
-
},
|
|
655
|
-
"props": {
|
|
656
|
-
"type": "array"
|
|
657
|
-
},
|
|
658
|
-
"limit": {
|
|
659
|
-
"type": "number"
|
|
660
|
-
},
|
|
661
|
-
"after": {
|
|
662
|
-
"type": "string"
|
|
663
|
-
},
|
|
664
|
-
"allProps": {
|
|
665
|
-
"type": "boolean"
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
"output": "{ total, results: deal[], paging }",
|
|
669
|
-
"note": "Api.searchDeals takes HubSpot filterGroups ([{ filters: [{ propertyName, operator, value }] }]), sorts, props, limit, after and allProps (default true: every deal property when props is empty). The capability was reshaped from open/closeDateBefore/closeDateAfter/minAmount, which the Api never had; a definition expresses those as filterGroups."
|
|
670
|
-
},
|
|
671
|
-
"task.get": {
|
|
672
|
-
"kind": "read",
|
|
673
|
-
"method": "getTaskById",
|
|
674
|
-
"input": {
|
|
675
|
-
"id": {
|
|
676
|
-
"type": "string",
|
|
677
|
-
"required": true
|
|
678
|
-
},
|
|
679
|
-
"properties": {
|
|
680
|
-
"type": "array"
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
"output": "task",
|
|
684
|
-
"args": [
|
|
685
|
-
"id",
|
|
686
|
-
"properties"
|
|
687
|
-
]
|
|
688
|
-
},
|
|
689
|
-
"task.update": {
|
|
690
|
-
"kind": "write",
|
|
691
|
-
"method": "updateTask",
|
|
692
|
-
"input": {
|
|
693
|
-
"id": {
|
|
694
|
-
"type": "string",
|
|
695
|
-
"required": true
|
|
696
|
-
},
|
|
697
|
-
"properties": {
|
|
698
|
-
"type": "object",
|
|
699
|
-
"required": true
|
|
700
|
-
}
|
|
701
|
-
},
|
|
702
|
-
"output": "task",
|
|
703
|
-
"args": [
|
|
704
|
-
"id",
|
|
705
|
-
"properties"
|
|
706
|
-
]
|
|
707
|
-
},
|
|
708
|
-
"task.search": {
|
|
709
|
-
"kind": "search",
|
|
710
|
-
"method": "searchTasks",
|
|
711
|
-
"input": {
|
|
712
|
-
"dueBefore": {
|
|
713
|
-
"type": "string"
|
|
714
|
-
},
|
|
715
|
-
"status": {
|
|
716
|
-
"type": "string"
|
|
717
|
-
},
|
|
718
|
-
"ownerId": {
|
|
719
|
-
"type": "string"
|
|
720
|
-
},
|
|
721
|
-
"limit": {
|
|
722
|
-
"type": "number"
|
|
723
|
-
},
|
|
724
|
-
"properties": {
|
|
725
|
-
"type": "array"
|
|
726
|
-
},
|
|
727
|
-
"after": {
|
|
728
|
-
"type": "string"
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
"output": "{ total, results: task[], paging }"
|
|
732
|
-
},
|
|
733
|
-
"owner.get": {
|
|
734
|
-
"kind": "read",
|
|
735
|
-
"method": "getOwnerById",
|
|
736
|
-
"input": {
|
|
737
|
-
"id": {
|
|
738
|
-
"type": "string",
|
|
739
|
-
"required": true
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
"output": "owner",
|
|
743
|
-
"args": [
|
|
744
|
-
"id"
|
|
745
|
-
]
|
|
746
|
-
},
|
|
747
|
-
"owner.findByEmail": {
|
|
748
|
-
"kind": "search",
|
|
749
|
-
"method": "getOwnerByEmail",
|
|
750
|
-
"input": {
|
|
751
|
-
"email": {
|
|
752
|
-
"type": "string",
|
|
753
|
-
"required": true
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
"output": "owner",
|
|
757
|
-
"args": [
|
|
758
|
-
"email"
|
|
759
|
-
]
|
|
760
|
-
},
|
|
761
|
-
"subscription.definitions": {
|
|
762
|
-
"kind": "read",
|
|
763
|
-
"method": "listSubscriptionDefinitions",
|
|
764
|
-
"input": {},
|
|
765
|
-
"output": "subscriptionDefinition[]",
|
|
766
|
-
"args": []
|
|
767
|
-
},
|
|
768
|
-
"subscription.unsubscribe": {
|
|
769
|
-
"kind": "write",
|
|
770
|
-
"method": "unsubscribeEmail",
|
|
771
|
-
"label": "Communication preferences API; hs_email_optout itself is read-only",
|
|
772
|
-
"input": {
|
|
773
|
-
"emailAddress": {
|
|
774
|
-
"type": "string",
|
|
775
|
-
"required": true
|
|
776
|
-
},
|
|
777
|
-
"subscriptionId": {
|
|
778
|
-
"type": "string",
|
|
779
|
-
"required": true
|
|
780
|
-
},
|
|
781
|
-
"legalBasis": {
|
|
782
|
-
"type": "string"
|
|
783
|
-
},
|
|
784
|
-
"legalBasisExplanation": {
|
|
785
|
-
"type": "string"
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
"output": "subscriptionStatus",
|
|
789
|
-
"args": [
|
|
790
|
-
"emailAddress",
|
|
791
|
-
"subscriptionId",
|
|
792
|
-
"legalBasis",
|
|
793
|
-
"legalBasisExplanation"
|
|
794
|
-
]
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
"options": {
|
|
798
|
-
"owner": {
|
|
799
|
-
"capability": "owner.list",
|
|
800
|
-
"label": "{{item.firstName}} {{item.lastName}}",
|
|
801
|
-
"value": "$.item.id"
|
|
802
|
-
},
|
|
803
|
-
"dealStage": {
|
|
804
|
-
"capability": "pipeline.stages",
|
|
805
|
-
"label": "$.item.label",
|
|
806
|
-
"value": "$.item.id"
|
|
807
|
-
},
|
|
808
|
-
"subscriptionType": {
|
|
809
|
-
"capability": "subscription.definitions",
|
|
810
|
-
"label": "{{item.name}}",
|
|
811
|
-
"value": "$.item.id"
|
|
812
|
-
}
|
|
813
|
-
},
|
|
814
|
-
"ui": {
|
|
815
|
-
"placements": [
|
|
816
|
-
"crm.record.sidebar",
|
|
817
|
-
"crm.record.tab",
|
|
818
|
-
"crm.record.preview"
|
|
819
|
-
],
|
|
820
|
-
"renderer": "left-hook-hubspot-app/frigg-card"
|
|
821
|
-
}
|
|
822
|
-
}
|