@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.
Files changed (130) hide show
  1. package/database/documentdb-utils.js +1 -6
  2. package/errors/index.js +0 -4
  3. package/generated/prisma-mongodb/edge.js +4 -52
  4. package/generated/prisma-mongodb/index-browser.js +1 -49
  5. package/generated/prisma-mongodb/index.d.ts +60 -3506
  6. package/generated/prisma-mongodb/index.js +4 -52
  7. package/generated/prisma-mongodb/package.json +1 -1
  8. package/generated/prisma-mongodb/schema.prisma +0 -65
  9. package/generated/prisma-mongodb/wasm.js +4 -52
  10. package/generated/prisma-postgresql/edge.js +4 -52
  11. package/generated/prisma-postgresql/index-browser.js +1 -49
  12. package/generated/prisma-postgresql/index.d.ts +94 -3824
  13. package/generated/prisma-postgresql/index.js +4 -52
  14. package/generated/prisma-postgresql/package.json +1 -1
  15. package/generated/prisma-postgresql/schema.prisma +0 -63
  16. package/generated/prisma-postgresql/wasm.js +4 -52
  17. package/handlers/WEBHOOKS.md +0 -29
  18. package/handlers/app-definition-loader.js +9 -2
  19. package/handlers/app-handler-helpers.js +2 -5
  20. package/handlers/integration-event-dispatcher.js +3 -7
  21. package/handlers/routers/integration-webhook-routers.js +38 -26
  22. package/index.js +0 -2
  23. package/integrations/integration-base.js +1 -162
  24. package/integrations/integration-router.js +1 -6
  25. package/integrations/repositories/integration-mapping-repository-documentdb.js +0 -50
  26. package/integrations/repositories/integration-mapping-repository-interface.js +0 -15
  27. package/integrations/repositories/integration-mapping-repository-mongo.js +0 -29
  28. package/integrations/repositories/integration-mapping-repository-postgres.js +0 -30
  29. package/integrations/repositories/integration-mapping-repository.js +0 -29
  30. package/integrations/repositories/integration-repository-documentdb.js +2 -6
  31. package/integrations/repositories/integration-repository-interface.js +0 -3
  32. package/integrations/repositories/integration-repository-mongo.js +5 -20
  33. package/integrations/repositories/integration-repository-postgres.js +1 -5
  34. package/integrations/repositories/process-repository-mongo.js +1 -1
  35. package/integrations/use-cases/create-integration.js +4 -14
  36. package/integrations/use-cases/delete-integration-for-user.js +4 -4
  37. package/integrations/use-cases/get-integration-for-user.js +2 -4
  38. package/integrations/use-cases/get-integration-instance.js +4 -4
  39. package/integrations/use-cases/get-integrations-for-user.js +4 -4
  40. package/integrations/use-cases/get-possible-integrations.js +2 -7
  41. package/integrations/use-cases/update-integration.js +4 -4
  42. package/package.json +6 -6
  43. package/prisma-mongodb/schema.prisma +0 -65
  44. package/prisma-postgresql/schema.prisma +0 -63
  45. package/queues/queuer-util.js +2 -9
  46. package/errors/mapping-already-exists-error.js +0 -14
  47. package/handlers/workers/integration-triggers.js +0 -25
  48. package/infrastructure/scheduler/recurrence.js +0 -204
  49. package/integrations/definitions/README.md +0 -278
  50. package/integrations/definitions/canonical.js +0 -11
  51. package/integrations/definitions/capabilities/AUDIT.md +0 -480
  52. package/integrations/definitions/capabilities/acmeerp.capabilities.json +0 -633
  53. package/integrations/definitions/capabilities/asana.capabilities.json +0 -279
  54. package/integrations/definitions/capabilities/calendly.capabilities.json +0 -385
  55. package/integrations/definitions/capabilities/docusign.capabilities.json +0 -314
  56. package/integrations/definitions/capabilities/fathom.capabilities.json +0 -238
  57. package/integrations/definitions/capabilities/github.capabilities.json +0 -585
  58. package/integrations/definitions/capabilities/hubspot.capabilities.json +0 -822
  59. package/integrations/definitions/capabilities/jira.capabilities.json +0 -391
  60. package/integrations/definitions/capabilities/klaviyo.capabilities.json +0 -503
  61. package/integrations/definitions/capabilities/linear.capabilities.json +0 -378
  62. package/integrations/definitions/capabilities/netsuite.capabilities.json +0 -535
  63. package/integrations/definitions/capabilities/notion.capabilities.json +0 -208
  64. package/integrations/definitions/capabilities/phone.capabilities.json +0 -511
  65. package/integrations/definitions/capabilities/pipedrive.capabilities.json +0 -430
  66. package/integrations/definitions/capabilities/quickbooks.capabilities.json +0 -635
  67. package/integrations/definitions/capabilities/salesforce.capabilities.json +0 -568
  68. package/integrations/definitions/capabilities/shopify.capabilities.json +0 -1128
  69. package/integrations/definitions/capabilities/slack.capabilities.json +0 -373
  70. package/integrations/definitions/capabilities/stripe.capabilities.json +0 -630
  71. package/integrations/definitions/capabilities/webflow.capabilities.json +0 -196
  72. package/integrations/definitions/capabilities/zendesk.capabilities.json +0 -422
  73. package/integrations/definitions/compile.js +0 -80
  74. package/integrations/definitions/config-form.js +0 -137
  75. package/integrations/definitions/examples/acme-erp-quickbooks.definition.json +0 -467
  76. package/integrations/definitions/examples/asana-slack.definition.json +0 -219
  77. package/integrations/definitions/examples/calendly-salesforce.definition.json +0 -459
  78. package/integrations/definitions/examples/docusign-salesforce.definition.json +0 -305
  79. package/integrations/definitions/examples/fathom-hubspot-notion.definition.json +0 -575
  80. package/integrations/definitions/examples/github-linear.definition.json +0 -322
  81. package/integrations/definitions/examples/hubspot-slack.definition.json +0 -427
  82. package/integrations/definitions/examples/klaviyo-hubspot.definition.json +0 -336
  83. package/integrations/definitions/examples/phone-hubspot.definition.json +0 -633
  84. package/integrations/definitions/examples/pipedrive-hubspot.definition.json +0 -136
  85. package/integrations/definitions/examples/pipedrive-phone.definition.json +0 -340
  86. package/integrations/definitions/examples/records/phone-hubspot.definition-version.json +0 -652
  87. package/integrations/definitions/examples/records/phone-hubspot.integration.json +0 -86
  88. package/integrations/definitions/examples/records/phone-hubspot.mappings.json +0 -39
  89. package/integrations/definitions/examples/records/phone-hubspot.workflow-run.json +0 -62
  90. package/integrations/definitions/examples/shopify-klaviyo.definition.json +0 -488
  91. package/integrations/definitions/examples/shopify-netsuite.definition.json +0 -622
  92. package/integrations/definitions/examples/stripe-quickbooks.definition.json +0 -476
  93. package/integrations/definitions/examples/webflow-hubspot-slack.definition.json +0 -262
  94. package/integrations/definitions/examples/zendesk-jira.definition.json +0 -604
  95. package/integrations/definitions/expressions.js +0 -229
  96. package/integrations/definitions/index.js +0 -45
  97. package/integrations/definitions/integration-runtime.js +0 -763
  98. package/integrations/definitions/interpreter.js +0 -104
  99. package/integrations/definitions/manifests.js +0 -177
  100. package/integrations/definitions/renderers/common.js +0 -67
  101. package/integrations/definitions/renderers/html.js +0 -129
  102. package/integrations/definitions/renderers/hubspot.js +0 -59
  103. package/integrations/definitions/renderers/preview.js +0 -154
  104. package/integrations/definitions/renderers/slack.js +0 -146
  105. package/integrations/definitions/repositories/definition-version-repository.js +0 -67
  106. package/integrations/definitions/repositories/workflow-run-repository.js +0 -80
  107. package/integrations/definitions/router.js +0 -170
  108. package/integrations/definitions/runtime.js +0 -268
  109. package/integrations/definitions/schema/capability-manifest.v0.1.schema.json +0 -549
  110. package/integrations/definitions/schema/installation.v0.1.schema.json +0 -130
  111. package/integrations/definitions/schema/integration-definition.v0.1.schema.json +0 -909
  112. package/integrations/definitions/schema/records.md +0 -105
  113. package/integrations/definitions/schema-check.js +0 -58
  114. package/integrations/definitions/scripts/check-manifests.js +0 -220
  115. package/integrations/definitions/scripts/validate.js +0 -66
  116. package/integrations/definitions/steps.js +0 -123
  117. package/integrations/definitions/sync-engine.js +0 -297
  118. package/integrations/definitions/tests/helpers-fake-crm.js +0 -49
  119. package/integrations/definitions/transforms.js +0 -91
  120. package/integrations/definitions/use-cases/definition-use-cases.js +0 -245
  121. package/integrations/definitions/validate.js +0 -436
  122. package/integrations/definitions/versioning.js +0 -176
  123. package/integrations/definitions/webhooks.js +0 -119
  124. package/integrations/integration-types.js +0 -64
  125. package/integrations/triggers.js +0 -244
  126. package/integrations/use-cases/run-trigger-tick.js +0 -155
  127. package/integrations/use-cases/run-trigger.js +0 -77
  128. package/prisma-postgresql/migrations/20261018000000_add_data_defined_integrations/migration.sql +0 -66
  129. package/prisma-postgresql/migrations/20261019000000_workflow_run_waits/migration.sql +0 -7
  130. package/prisma-postgresql/migrations/20261019120000_definition_workspace/migration.sql +0 -5
@@ -1,535 +0,0 @@
1
- {
2
- "$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
3
- "module": "netsuite",
4
- "label": "NetSuite",
5
- "package": "@friggframework/api-module-netsuite",
6
- "version": "1.2.0",
7
- "auth": "oauth2",
8
- "objects": {
9
- "customer": {
10
- "label": "Customer",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "id",
15
- "readOnly": true
16
- },
17
- {
18
- "name": "entityId",
19
- "type": "string",
20
- "tag": "record.displayId",
21
- "readOnly": true
22
- },
23
- {
24
- "name": "externalId",
25
- "type": "string",
26
- "tag": "record.externalId"
27
- },
28
- {
29
- "name": "isPerson",
30
- "type": "boolean"
31
- },
32
- {
33
- "name": "firstName",
34
- "type": "string",
35
- "tag": "person.givenName"
36
- },
37
- {
38
- "name": "lastName",
39
- "type": "string",
40
- "tag": "person.familyName"
41
- },
42
- {
43
- "name": "companyName",
44
- "type": "string",
45
- "tag": "organization.name"
46
- },
47
- {
48
- "name": "email",
49
- "type": "email",
50
- "tag": "contact.email"
51
- },
52
- {
53
- "name": "phone",
54
- "type": "phone",
55
- "tag": "contact.phone"
56
- },
57
- {
58
- "name": "subsidiary.id",
59
- "type": "string"
60
- },
61
- {
62
- "name": "dateCreated",
63
- "type": "datetime",
64
- "tag": "record.createdAt",
65
- "readOnly": true
66
- },
67
- {
68
- "name": "lastModifiedDate",
69
- "type": "datetime",
70
- "tag": "record.updatedAt",
71
- "readOnly": true
72
- }
73
- ],
74
- "sync": {
75
- "id": "id",
76
- "updatedAt": "lastModifiedDate",
77
- "list": {
78
- "capability": "customer.list",
79
- "cursor": "offset",
80
- "limit": "limit",
81
- "since": "lastModifiedAfter",
82
- "items": "items",
83
- "paging": "offset"
84
- },
85
- "get": {
86
- "capability": "customer.get",
87
- "id": "id"
88
- },
89
- "search": {
90
- "capability": "customer.search"
91
- },
92
- "create": {
93
- "capability": "customer.create",
94
- "body": "record"
95
- },
96
- "update": {
97
- "capability": "customer.update",
98
- "id": "id",
99
- "body": "record"
100
- }
101
- }
102
- },
103
- "salesOrder": {
104
- "label": "Sales order",
105
- "fields": [
106
- {
107
- "name": "id",
108
- "type": "id",
109
- "readOnly": true
110
- },
111
- {
112
- "name": "tranId",
113
- "type": "string",
114
- "tag": "record.displayId",
115
- "readOnly": true
116
- },
117
- {
118
- "name": "externalId",
119
- "type": "string",
120
- "tag": "record.externalId"
121
- },
122
- {
123
- "name": "otherRefNum",
124
- "type": "string",
125
- "tag": "order.number"
126
- },
127
- {
128
- "name": "entity.id",
129
- "type": "string"
130
- },
131
- {
132
- "name": "subsidiary.id",
133
- "type": "string"
134
- },
135
- {
136
- "name": "location.id",
137
- "type": "string"
138
- },
139
- {
140
- "name": "tranDate",
141
- "type": "date",
142
- "tag": "order.createdAt"
143
- },
144
- {
145
- "name": "memo",
146
- "type": "text"
147
- },
148
- {
149
- "name": "email",
150
- "type": "email",
151
- "tag": "contact.email"
152
- },
153
- {
154
- "name": "currency.refName",
155
- "type": "string",
156
- "tag": "order.currency"
157
- },
158
- {
159
- "name": "subtotal",
160
- "type": "number",
161
- "tag": "order.subtotal",
162
- "readOnly": true
163
- },
164
- {
165
- "name": "taxTotal",
166
- "type": "number",
167
- "tag": "order.tax",
168
- "readOnly": true
169
- },
170
- {
171
- "name": "total",
172
- "type": "number",
173
- "tag": "order.total",
174
- "readOnly": true
175
- },
176
- {
177
- "name": "orderStatus",
178
- "type": "enum",
179
- "tag": "order.status",
180
- "values": [
181
- "A",
182
- "B",
183
- "C",
184
- "D",
185
- "E",
186
- "F",
187
- "G",
188
- "H"
189
- ]
190
- },
191
- {
192
- "name": "item.items",
193
- "type": "lineItem[]",
194
- "tag": "order.lineItems"
195
- }
196
- ],
197
- "sync": {
198
- "id": "id",
199
- "get": {
200
- "capability": "salesOrder.get",
201
- "id": "id"
202
- },
203
- "create": {
204
- "capability": "salesOrder.create",
205
- "body": "record"
206
- },
207
- "update": {
208
- "capability": "salesOrder.update",
209
- "id": "id",
210
- "body": "record"
211
- }
212
- }
213
- },
214
- "itemFulfillment": {
215
- "label": "Item fulfillment",
216
- "fields": [
217
- {
218
- "name": "id",
219
- "type": "id",
220
- "readOnly": true
221
- },
222
- {
223
- "name": "tranId",
224
- "type": "string",
225
- "tag": "record.displayId",
226
- "readOnly": true
227
- },
228
- {
229
- "name": "createdFrom.id",
230
- "type": "string"
231
- },
232
- {
233
- "name": "tranDate",
234
- "type": "date"
235
- },
236
- {
237
- "name": "shipStatus",
238
- "type": "enum",
239
- "values": [
240
- "_picked",
241
- "_packed",
242
- "_shipped"
243
- ]
244
- },
245
- {
246
- "name": "package.packages",
247
- "type": "json",
248
- "tag": "shipment.packages"
249
- },
250
- {
251
- "name": "memo",
252
- "type": "text"
253
- }
254
- ]
255
- },
256
- "creditMemo": {
257
- "label": "Credit memo",
258
- "fields": [
259
- {
260
- "name": "id",
261
- "type": "id",
262
- "readOnly": true
263
- },
264
- {
265
- "name": "tranId",
266
- "type": "string",
267
- "tag": "record.displayId",
268
- "readOnly": true
269
- },
270
- {
271
- "name": "externalId",
272
- "type": "string",
273
- "tag": "record.externalId"
274
- },
275
- {
276
- "name": "entity.id",
277
- "type": "string"
278
- },
279
- {
280
- "name": "createdFrom.id",
281
- "type": "string"
282
- },
283
- {
284
- "name": "tranDate",
285
- "type": "date"
286
- },
287
- {
288
- "name": "memo",
289
- "type": "text"
290
- },
291
- {
292
- "name": "total",
293
- "type": "number",
294
- "readOnly": true
295
- },
296
- {
297
- "name": "item.items",
298
- "type": "lineItem[]"
299
- }
300
- ]
301
- }
302
- },
303
- "events": {
304
- "itemFulfillment.created": {
305
- "delivery": "poll",
306
- "object": "itemFulfillment",
307
- "description": "Polled with SuiteQL on transaction.lastModifiedDate. NetSuite has no outbound webhooks without a deployed SuiteScript.",
308
- "payload": {
309
- "id": "88120",
310
- "tranId": "IF-10391",
311
- "createdFrom": {
312
- "id": "87904",
313
- "refName": "Sales Order #SO-20455"
314
- },
315
- "tranDate": "2026-10-19",
316
- "shipStatus": "_shipped",
317
- "package": {
318
- "packages": [
319
- {
320
- "packageTrackingNumber": "1Z999AA10123456784",
321
- "packageWeight": 2.1,
322
- "packageDescr": "Box 1 of 1"
323
- }
324
- ]
325
- },
326
- "lastModifiedDate": "2026-10-19T19:02:11Z"
327
- }
328
- },
329
- "customer.updated": {
330
- "delivery": "poll",
331
- "object": "customer",
332
- "description": "Polled with SuiteQL on customer.lastModifiedDate.",
333
- "payload": {
334
- "id": "40211",
335
- "entityId": "CUST-40211",
336
- "email": "dana.reyes@example.com",
337
- "firstName": "Dana",
338
- "lastName": "Reyes",
339
- "companyName": "Reyes Coffee Co",
340
- "lastModifiedDate": "2026-10-18T15:00:00Z"
341
- }
342
- }
343
- },
344
- "capabilities": {
345
- "customer.get": {
346
- "kind": "read",
347
- "method": "getCustomer",
348
- "input": {
349
- "id": {
350
- "type": "string",
351
- "required": true
352
- }
353
- },
354
- "output": "customer"
355
- },
356
- "customer.search": {
357
- "kind": "search",
358
- "method": "searchCustomers",
359
- "input": {
360
- "email": {
361
- "type": "string"
362
- },
363
- "externalId": {
364
- "type": "string"
365
- }
366
- },
367
- "output": "customer[]"
368
- },
369
- "customer.list": {
370
- "kind": "read",
371
- "method": "listCustomers",
372
- "input": {
373
- "lastModifiedAfter": {
374
- "type": "string"
375
- },
376
- "limit": {
377
- "type": "number"
378
- },
379
- "offset": {
380
- "type": "number"
381
- }
382
- },
383
- "output": "page<customer>"
384
- },
385
- "customer.create": {
386
- "kind": "write",
387
- "method": "createCustomer",
388
- "input": {
389
- "record": {
390
- "type": "object",
391
- "required": true
392
- }
393
- },
394
- "output": "customer"
395
- },
396
- "customer.update": {
397
- "kind": "write",
398
- "method": "updateCustomer",
399
- "input": {
400
- "id": {
401
- "type": "string",
402
- "required": true
403
- },
404
- "record": {
405
- "type": "object",
406
- "required": true
407
- }
408
- },
409
- "output": "customer"
410
- },
411
- "salesOrder.create": {
412
- "kind": "write",
413
- "method": "createSalesOrder",
414
- "input": {
415
- "record": {
416
- "type": "object",
417
- "required": true
418
- }
419
- },
420
- "output": "salesOrder"
421
- },
422
- "salesOrder.get": {
423
- "kind": "read",
424
- "method": "getSalesOrder",
425
- "input": {
426
- "id": {
427
- "type": "string",
428
- "required": true
429
- },
430
- "expandSubResources": {
431
- "type": "boolean"
432
- }
433
- },
434
- "output": "salesOrder"
435
- },
436
- "salesOrder.update": {
437
- "kind": "write",
438
- "method": "updateSalesOrder",
439
- "input": {
440
- "id": {
441
- "type": "string",
442
- "required": true
443
- },
444
- "record": {
445
- "type": "object",
446
- "required": true
447
- }
448
- },
449
- "output": "salesOrder"
450
- },
451
- "salesOrder.search": {
452
- "kind": "search",
453
- "method": "searchSalesOrders",
454
- "input": {
455
- "otherRefNum": {
456
- "type": "string"
457
- },
458
- "externalId": {
459
- "type": "string"
460
- }
461
- },
462
- "output": "salesOrder[]"
463
- },
464
- "creditMemo.create": {
465
- "kind": "write",
466
- "method": "createCreditMemo",
467
- "input": {
468
- "record": {
469
- "type": "object",
470
- "required": true
471
- }
472
- },
473
- "output": "creditMemo"
474
- },
475
- "itemFulfillment.get": {
476
- "kind": "read",
477
- "method": "getItemFulfillment",
478
- "input": {
479
- "id": {
480
- "type": "string",
481
- "required": true
482
- }
483
- },
484
- "output": "itemFulfillment"
485
- },
486
- "itemFulfillment.list": {
487
- "kind": "read",
488
- "method": "listItemFulfillments",
489
- "input": {
490
- "modifiedAfter": {
491
- "type": "string"
492
- },
493
- "limit": {
494
- "type": "number"
495
- }
496
- },
497
- "output": "itemFulfillment[]"
498
- },
499
- "item.search": {
500
- "kind": "search",
501
- "method": "searchItems",
502
- "input": {
503
- "sku": {
504
- "type": "string",
505
- "required": true
506
- }
507
- },
508
- "output": "item[]"
509
- },
510
- "subsidiary.list": {
511
- "kind": "read",
512
- "method": "listSubsidiaries",
513
- "input": {},
514
- "output": "subsidiary[]"
515
- },
516
- "location.list": {
517
- "kind": "read",
518
- "method": "listLocations",
519
- "input": {},
520
- "output": "location[]"
521
- }
522
- },
523
- "options": {
524
- "subsidiary": {
525
- "capability": "subsidiary.list",
526
- "label": "{{item.name}}",
527
- "value": "$.item.id"
528
- },
529
- "location": {
530
- "capability": "location.list",
531
- "label": "{{item.name}}",
532
- "value": "$.item.id"
533
- }
534
- }
535
- }