@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,262 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://friggframework.org/schemas/integration-definition/v0.1.json",
|
|
3
|
-
"schemaVersion": "0.1",
|
|
4
|
-
"id": "webflow-hubspot-slack",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"display": {
|
|
7
|
-
"label": "Webflow forms \u2192 HubSpot + Slack",
|
|
8
|
-
"description": "Website form submissions become HubSpot contacts and are routed to the right Slack channel by what the visitor asked about. Honeypot and link spam is dropped before anything is written.",
|
|
9
|
-
"category": "Lead capture",
|
|
10
|
-
"tags": [
|
|
11
|
-
"forms",
|
|
12
|
-
"website",
|
|
13
|
-
"crm",
|
|
14
|
-
"slack"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"modules": {
|
|
18
|
-
"webflow": {
|
|
19
|
-
"module": "webflow",
|
|
20
|
-
"version": "^2.0"
|
|
21
|
-
},
|
|
22
|
-
"hubspot": {
|
|
23
|
-
"module": "hubspot",
|
|
24
|
-
"version": "^1.4"
|
|
25
|
-
},
|
|
26
|
-
"slack": {
|
|
27
|
-
"module": "slack",
|
|
28
|
-
"version": "^2.0"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"settings": {
|
|
32
|
-
"site": {
|
|
33
|
-
"type": "option",
|
|
34
|
-
"options": "webflow.site",
|
|
35
|
-
"label": "Webflow site",
|
|
36
|
-
"required": true
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"workflows": [
|
|
40
|
-
{
|
|
41
|
-
"id": "contact-form",
|
|
42
|
-
"label": "Contact form \u2192 HubSpot contact + routed Slack alert",
|
|
43
|
-
"purpose": "write",
|
|
44
|
-
"default": "on",
|
|
45
|
-
"settings": {
|
|
46
|
-
"salesChannel": {
|
|
47
|
-
"type": "option",
|
|
48
|
-
"options": "slack.channel",
|
|
49
|
-
"label": "Sales enquiries go to",
|
|
50
|
-
"required": true
|
|
51
|
-
},
|
|
52
|
-
"supportChannel": {
|
|
53
|
-
"type": "option",
|
|
54
|
-
"options": "slack.channel",
|
|
55
|
-
"label": "Support requests go to",
|
|
56
|
-
"required": true
|
|
57
|
-
},
|
|
58
|
-
"defaultChannel": {
|
|
59
|
-
"type": "option",
|
|
60
|
-
"options": "slack.channel",
|
|
61
|
-
"label": "Everything else goes to",
|
|
62
|
-
"required": true
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"trigger": {
|
|
66
|
-
"type": "webhook",
|
|
67
|
-
"module": "webflow",
|
|
68
|
-
"topic": "form.submitted",
|
|
69
|
-
"filter": "$.record.name != 'Newsletter' && $.record.data.Email exists && !($.record.data.Website exists && $.record.data.Website != '') && !($.record.data.Message contains 'http://') && !($.record.data.Message contains 'crypto')"
|
|
70
|
-
},
|
|
71
|
-
"steps": [
|
|
72
|
-
{
|
|
73
|
-
"id": "fields",
|
|
74
|
-
"use": "map",
|
|
75
|
-
"with": {
|
|
76
|
-
"record": "$.record.data",
|
|
77
|
-
"mapping": [
|
|
78
|
-
{
|
|
79
|
-
"source": "Email",
|
|
80
|
-
"target": "properties.email",
|
|
81
|
-
"transform": "lowercase"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"source": "Name",
|
|
85
|
-
"target": "properties.firstname",
|
|
86
|
-
"transform": "split_full_name",
|
|
87
|
-
"options": {
|
|
88
|
-
"part": "first"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"source": "Name",
|
|
93
|
-
"target": "properties.lastname",
|
|
94
|
-
"transform": "split_full_name",
|
|
95
|
-
"options": {
|
|
96
|
-
"part": "last"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"source": "Company",
|
|
101
|
-
"target": "properties.company",
|
|
102
|
-
"transform": "trim"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"source": "Phone",
|
|
106
|
-
"target": "properties.phone",
|
|
107
|
-
"transform": "to_e164_phone"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"target": "properties.lifecyclestage",
|
|
111
|
-
"value": "lead"
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"id": "contact",
|
|
118
|
-
"use": "hubspot.contact.upsertByEmail",
|
|
119
|
-
"with": {
|
|
120
|
-
"email": "$.record.data.Email",
|
|
121
|
-
"properties": "$.steps.fields.properties"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"id": "alert",
|
|
126
|
-
"use": "template",
|
|
127
|
-
"with": {
|
|
128
|
-
"id": "lead-alert"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"id": "route",
|
|
133
|
-
"use": "branch",
|
|
134
|
-
"cases": [
|
|
135
|
-
{
|
|
136
|
-
"when": "$.record.data.Interest == 'Sales'",
|
|
137
|
-
"do": [
|
|
138
|
-
{
|
|
139
|
-
"use": "slack.message.post",
|
|
140
|
-
"with": {
|
|
141
|
-
"channel": "$.settings.salesChannel",
|
|
142
|
-
"text": "$.steps.alert"
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"when": "$.record.data.Interest == 'Support'",
|
|
149
|
-
"do": [
|
|
150
|
-
{
|
|
151
|
-
"use": "slack.message.post",
|
|
152
|
-
"with": {
|
|
153
|
-
"channel": "$.settings.supportChannel",
|
|
154
|
-
"text": ":sos: {{steps.alert}}"
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
"else": [
|
|
161
|
-
{
|
|
162
|
-
"use": "slack.message.post",
|
|
163
|
-
"with": {
|
|
164
|
-
"channel": "$.settings.defaultChannel",
|
|
165
|
-
"text": "$.steps.alert"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"id": "newsletter-signup",
|
|
174
|
-
"label": "Newsletter sign-ups become subscribers",
|
|
175
|
-
"purpose": "write",
|
|
176
|
-
"default": "on",
|
|
177
|
-
"trigger": {
|
|
178
|
-
"type": "webhook",
|
|
179
|
-
"module": "webflow",
|
|
180
|
-
"topic": "form.submitted",
|
|
181
|
-
"filter": "$.record.name == 'Newsletter' && $.record.data.Email exists && !($.record.data.Website exists && $.record.data.Website != '') && !($.record.data.Message contains 'http://') && !($.record.data.Message contains 'crypto')"
|
|
182
|
-
},
|
|
183
|
-
"steps": [
|
|
184
|
-
{
|
|
185
|
-
"id": "fields",
|
|
186
|
-
"use": "map",
|
|
187
|
-
"with": {
|
|
188
|
-
"record": "$.record.data",
|
|
189
|
-
"mapping": [
|
|
190
|
-
{
|
|
191
|
-
"source": "Email",
|
|
192
|
-
"target": "properties.email",
|
|
193
|
-
"transform": "lowercase"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"source": "Name",
|
|
197
|
-
"target": "properties.firstname",
|
|
198
|
-
"transform": "split_full_name",
|
|
199
|
-
"options": {
|
|
200
|
-
"part": "first"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"source": "Name",
|
|
205
|
-
"target": "properties.lastname",
|
|
206
|
-
"transform": "split_full_name",
|
|
207
|
-
"options": {
|
|
208
|
-
"part": "last"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"source": "Company",
|
|
213
|
-
"target": "properties.company",
|
|
214
|
-
"transform": "trim"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"source": "Phone",
|
|
218
|
-
"target": "properties.phone",
|
|
219
|
-
"transform": "to_e164_phone"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"target": "properties.lifecyclestage",
|
|
223
|
-
"value": "subscriber"
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"use": "hubspot.contact.upsertByEmail",
|
|
230
|
-
"with": {
|
|
231
|
-
"email": "$.record.data.Email",
|
|
232
|
-
"properties": "$.steps.fields.properties"
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
"templates": {
|
|
239
|
-
"lead-alert": "*New {{record.data.Interest | default: 'website'}} enquiry* from {{record.data.Name | default: 'someone'}} ({{record.data.Company | default: 'no company'}}) on {{record.publishedPath}}\n> {{record.data.Message | truncate: 280}}\n<https://app.hubspot.com/contacts/{{install.portalId}}/record/0-1/{{steps.contact.id}}|Open in HubSpot> \u00b7 {{record.data.Email}}"
|
|
240
|
-
},
|
|
241
|
-
"lifecycle": {
|
|
242
|
-
"onInstall": [
|
|
243
|
-
{
|
|
244
|
-
"id": "hook",
|
|
245
|
-
"use": "webflow.webhook.create",
|
|
246
|
-
"with": {
|
|
247
|
-
"siteId": "$.install.site",
|
|
248
|
-
"triggerType": "form_submission",
|
|
249
|
-
"url": "$.install.webhookUrls.webflow"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"onUninstall": [
|
|
254
|
-
{
|
|
255
|
-
"use": "webflow.webhook.delete",
|
|
256
|
-
"with": {
|
|
257
|
-
"webhookId": "$.install.runtime.installed.hook.id"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
}
|