@friggframework/core 2.0.0--canary.694.f66a64a.0 → 2.0.0--canary.695.5edaa52.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 (47) hide show
  1. package/generated/prisma-mongodb/edge.js +6 -3
  2. package/generated/prisma-mongodb/index-browser.js +3 -0
  3. package/generated/prisma-mongodb/index.d.ts +103 -1
  4. package/generated/prisma-mongodb/index.js +6 -3
  5. package/generated/prisma-mongodb/package.json +1 -1
  6. package/generated/prisma-mongodb/schema.prisma +6 -0
  7. package/generated/prisma-mongodb/wasm.js +6 -3
  8. package/generated/prisma-postgresql/edge.js +6 -3
  9. package/generated/prisma-postgresql/index-browser.js +3 -0
  10. package/generated/prisma-postgresql/index.d.ts +109 -1
  11. package/generated/prisma-postgresql/index.js +6 -3
  12. package/generated/prisma-postgresql/package.json +1 -1
  13. package/generated/prisma-postgresql/schema.prisma +6 -0
  14. package/generated/prisma-postgresql/wasm.js +6 -3
  15. package/integrations/data-defined/README.md +23 -7
  16. package/integrations/data-defined/capabilities/acmeerp.capabilities.json +26 -1
  17. package/integrations/data-defined/capabilities/github.capabilities.json +23 -1
  18. package/integrations/data-defined/capabilities/hubspot.capabilities.json +31 -3
  19. package/integrations/data-defined/capabilities/jira.capabilities.json +16 -1
  20. package/integrations/data-defined/capabilities/klaviyo.capabilities.json +29 -1
  21. package/integrations/data-defined/capabilities/linear.capabilities.json +17 -1
  22. package/integrations/data-defined/capabilities/netsuite.capabilities.json +47 -3
  23. package/integrations/data-defined/capabilities/phone.capabilities.json +26 -1
  24. package/integrations/data-defined/capabilities/pipedrive.capabilities.json +26 -1
  25. package/integrations/data-defined/capabilities/quickbooks.capabilities.json +21 -1
  26. package/integrations/data-defined/capabilities/shopify.capabilities.json +48 -2
  27. package/integrations/data-defined/capabilities/stripe.capabilities.json +24 -1
  28. package/integrations/data-defined/capabilities/zendesk.capabilities.json +14 -1
  29. package/integrations/data-defined/data-defined-integration.js +177 -16
  30. package/integrations/data-defined/examples/github-linear.definition.json +7 -1
  31. package/integrations/data-defined/expressions.js +2 -0
  32. package/integrations/data-defined/interpreter.js +28 -13
  33. package/integrations/data-defined/manifests.js +34 -0
  34. package/integrations/data-defined/repositories/workflow-run-repository.js +21 -0
  35. package/integrations/data-defined/router.js +15 -0
  36. package/integrations/data-defined/runtime.js +50 -5
  37. package/integrations/data-defined/schema/capability-manifest.v0.1.schema.json +132 -0
  38. package/integrations/data-defined/schema/integration-definition.v0.1.schema.json +8 -1
  39. package/integrations/data-defined/schema/records.md +8 -1
  40. package/integrations/data-defined/steps.js +35 -1
  41. package/integrations/data-defined/sync-engine.js +297 -0
  42. package/integrations/data-defined/tests/helpers-fake-crm.js +44 -0
  43. package/integrations/data-defined/validate.js +44 -6
  44. package/package.json +5 -5
  45. package/prisma-mongodb/schema.prisma +6 -0
  46. package/prisma-postgresql/migrations/20261019000000_workflow_run_waits/migration.sql +7 -0
  47. package/prisma-postgresql/schema.prisma +6 -0
@@ -20321,6 +20321,8 @@ export namespace Prisma {
20321
20321
  reason: string | null
20322
20322
  error: string | null
20323
20323
  retryable: boolean | null
20324
+ runKey: string | null
20325
+ resumeAt: Date | null
20324
20326
  startedAt: Date | null
20325
20327
  endedAt: Date | null
20326
20328
  createdAt: Date | null
@@ -20338,6 +20340,8 @@ export namespace Prisma {
20338
20340
  reason: string | null
20339
20341
  error: string | null
20340
20342
  retryable: boolean | null
20343
+ runKey: string | null
20344
+ resumeAt: Date | null
20341
20345
  startedAt: Date | null
20342
20346
  endedAt: Date | null
20343
20347
  createdAt: Date | null
@@ -20356,6 +20360,9 @@ export namespace Prisma {
20356
20360
  error: number
20357
20361
  retryable: number
20358
20362
  trace: number
20363
+ runKey: number
20364
+ waitingFor: number
20365
+ resumeAt: number
20359
20366
  startedAt: number
20360
20367
  endedAt: number
20361
20368
  createdAt: number
@@ -20375,6 +20382,8 @@ export namespace Prisma {
20375
20382
  reason?: true
20376
20383
  error?: true
20377
20384
  retryable?: true
20385
+ runKey?: true
20386
+ resumeAt?: true
20378
20387
  startedAt?: true
20379
20388
  endedAt?: true
20380
20389
  createdAt?: true
@@ -20392,6 +20401,8 @@ export namespace Prisma {
20392
20401
  reason?: true
20393
20402
  error?: true
20394
20403
  retryable?: true
20404
+ runKey?: true
20405
+ resumeAt?: true
20395
20406
  startedAt?: true
20396
20407
  endedAt?: true
20397
20408
  createdAt?: true
@@ -20410,6 +20421,9 @@ export namespace Prisma {
20410
20421
  error?: true
20411
20422
  retryable?: true
20412
20423
  trace?: true
20424
+ runKey?: true
20425
+ waitingFor?: true
20426
+ resumeAt?: true
20413
20427
  startedAt?: true
20414
20428
  endedAt?: true
20415
20429
  createdAt?: true
@@ -20501,6 +20515,9 @@ export namespace Prisma {
20501
20515
  error: string | null
20502
20516
  retryable: boolean
20503
20517
  trace: JsonValue
20518
+ runKey: string | null
20519
+ waitingFor: JsonValue | null
20520
+ resumeAt: Date | null
20504
20521
  startedAt: Date
20505
20522
  endedAt: Date | null
20506
20523
  createdAt: Date
@@ -20536,6 +20553,9 @@ export namespace Prisma {
20536
20553
  error?: boolean
20537
20554
  retryable?: boolean
20538
20555
  trace?: boolean
20556
+ runKey?: boolean
20557
+ waitingFor?: boolean
20558
+ resumeAt?: boolean
20539
20559
  startedAt?: boolean
20540
20560
  endedAt?: boolean
20541
20561
  createdAt?: boolean
@@ -20557,12 +20577,15 @@ export namespace Prisma {
20557
20577
  error?: boolean
20558
20578
  retryable?: boolean
20559
20579
  trace?: boolean
20580
+ runKey?: boolean
20581
+ waitingFor?: boolean
20582
+ resumeAt?: boolean
20560
20583
  startedAt?: boolean
20561
20584
  endedAt?: boolean
20562
20585
  createdAt?: boolean
20563
20586
  }
20564
20587
 
20565
- export type WorkflowRunOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "integrationId" | "definitionId" | "definitionVersion" | "workflowId" | "triggerType" | "eventId" | "status" | "reason" | "error" | "retryable" | "trace" | "startedAt" | "endedAt" | "createdAt", ExtArgs["result"]["workflowRun"]>
20588
+ export type WorkflowRunOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "integrationId" | "definitionId" | "definitionVersion" | "workflowId" | "triggerType" | "eventId" | "status" | "reason" | "error" | "retryable" | "trace" | "runKey" | "waitingFor" | "resumeAt" | "startedAt" | "endedAt" | "createdAt", ExtArgs["result"]["workflowRun"]>
20566
20589
  export type WorkflowRunInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20567
20590
  integration?: boolean | IntegrationDefaultArgs<ExtArgs>
20568
20591
  }
@@ -20585,6 +20608,15 @@ export namespace Prisma {
20585
20608
  error: string | null
20586
20609
  retryable: boolean
20587
20610
  trace: Prisma.JsonValue
20611
+ /**
20612
+ * The runtime's run id (run_...): how routes and resume jobs address a run
20613
+ */
20614
+ runKey: string | null
20615
+ /**
20616
+ * A paused run (status waiting): which step, and what it waits for. Never request or response bodies.
20617
+ */
20618
+ waitingFor: Prisma.JsonValue | null
20619
+ resumeAt: Date | null
20588
20620
  startedAt: Date
20589
20621
  endedAt: Date | null
20590
20622
  createdAt: Date
@@ -20993,6 +21025,9 @@ export namespace Prisma {
20993
21025
  readonly error: FieldRef<"WorkflowRun", 'String'>
20994
21026
  readonly retryable: FieldRef<"WorkflowRun", 'Boolean'>
20995
21027
  readonly trace: FieldRef<"WorkflowRun", 'Json'>
21028
+ readonly runKey: FieldRef<"WorkflowRun", 'String'>
21029
+ readonly waitingFor: FieldRef<"WorkflowRun", 'Json'>
21030
+ readonly resumeAt: FieldRef<"WorkflowRun", 'DateTime'>
20996
21031
  readonly startedAt: FieldRef<"WorkflowRun", 'DateTime'>
20997
21032
  readonly endedAt: FieldRef<"WorkflowRun", 'DateTime'>
20998
21033
  readonly createdAt: FieldRef<"WorkflowRun", 'DateTime'>
@@ -21635,6 +21670,9 @@ export namespace Prisma {
21635
21670
  error: 'error',
21636
21671
  retryable: 'retryable',
21637
21672
  trace: 'trace',
21673
+ runKey: 'runKey',
21674
+ waitingFor: 'waitingFor',
21675
+ resumeAt: 'resumeAt',
21638
21676
  startedAt: 'startedAt',
21639
21677
  endedAt: 'endedAt',
21640
21678
  createdAt: 'createdAt'
@@ -23067,6 +23105,9 @@ export namespace Prisma {
23067
23105
  error?: StringNullableFilter<"WorkflowRun"> | string | null
23068
23106
  retryable?: BoolFilter<"WorkflowRun"> | boolean
23069
23107
  trace?: JsonFilter<"WorkflowRun">
23108
+ runKey?: StringNullableFilter<"WorkflowRun"> | string | null
23109
+ waitingFor?: JsonNullableFilter<"WorkflowRun">
23110
+ resumeAt?: DateTimeNullableFilter<"WorkflowRun"> | Date | string | null
23070
23111
  startedAt?: DateTimeFilter<"WorkflowRun"> | Date | string
23071
23112
  endedAt?: DateTimeNullableFilter<"WorkflowRun"> | Date | string | null
23072
23113
  createdAt?: DateTimeFilter<"WorkflowRun"> | Date | string
@@ -23086,6 +23127,9 @@ export namespace Prisma {
23086
23127
  error?: SortOrder
23087
23128
  retryable?: SortOrder
23088
23129
  trace?: SortOrder
23130
+ runKey?: SortOrder
23131
+ waitingFor?: SortOrder
23132
+ resumeAt?: SortOrder
23089
23133
  startedAt?: SortOrder
23090
23134
  endedAt?: SortOrder
23091
23135
  createdAt?: SortOrder
@@ -23108,6 +23152,9 @@ export namespace Prisma {
23108
23152
  error?: StringNullableFilter<"WorkflowRun"> | string | null
23109
23153
  retryable?: BoolFilter<"WorkflowRun"> | boolean
23110
23154
  trace?: JsonFilter<"WorkflowRun">
23155
+ runKey?: StringNullableFilter<"WorkflowRun"> | string | null
23156
+ waitingFor?: JsonNullableFilter<"WorkflowRun">
23157
+ resumeAt?: DateTimeNullableFilter<"WorkflowRun"> | Date | string | null
23111
23158
  startedAt?: DateTimeFilter<"WorkflowRun"> | Date | string
23112
23159
  endedAt?: DateTimeNullableFilter<"WorkflowRun"> | Date | string | null
23113
23160
  createdAt?: DateTimeFilter<"WorkflowRun"> | Date | string
@@ -23127,6 +23174,9 @@ export namespace Prisma {
23127
23174
  error?: SortOrder
23128
23175
  retryable?: SortOrder
23129
23176
  trace?: SortOrder
23177
+ runKey?: SortOrder
23178
+ waitingFor?: SortOrder
23179
+ resumeAt?: SortOrder
23130
23180
  startedAt?: SortOrder
23131
23181
  endedAt?: SortOrder
23132
23182
  createdAt?: SortOrder
@@ -23151,6 +23201,9 @@ export namespace Prisma {
23151
23201
  error?: StringNullableWithAggregatesFilter<"WorkflowRun"> | string | null
23152
23202
  retryable?: BoolWithAggregatesFilter<"WorkflowRun"> | boolean
23153
23203
  trace?: JsonWithAggregatesFilter<"WorkflowRun">
23204
+ runKey?: StringNullableWithAggregatesFilter<"WorkflowRun"> | string | null
23205
+ waitingFor?: JsonNullableWithAggregatesFilter<"WorkflowRun">
23206
+ resumeAt?: DateTimeNullableWithAggregatesFilter<"WorkflowRun"> | Date | string | null
23154
23207
  startedAt?: DateTimeWithAggregatesFilter<"WorkflowRun"> | Date | string
23155
23208
  endedAt?: DateTimeNullableWithAggregatesFilter<"WorkflowRun"> | Date | string | null
23156
23209
  createdAt?: DateTimeWithAggregatesFilter<"WorkflowRun"> | Date | string
@@ -24434,6 +24487,9 @@ export namespace Prisma {
24434
24487
  error?: string | null
24435
24488
  retryable?: boolean
24436
24489
  trace?: InputJsonValue
24490
+ runKey?: string | null
24491
+ waitingFor?: InputJsonValue | null
24492
+ resumeAt?: Date | string | null
24437
24493
  startedAt: Date | string
24438
24494
  endedAt?: Date | string | null
24439
24495
  createdAt?: Date | string
@@ -24453,6 +24509,9 @@ export namespace Prisma {
24453
24509
  error?: string | null
24454
24510
  retryable?: boolean
24455
24511
  trace?: InputJsonValue
24512
+ runKey?: string | null
24513
+ waitingFor?: InputJsonValue | null
24514
+ resumeAt?: Date | string | null
24456
24515
  startedAt: Date | string
24457
24516
  endedAt?: Date | string | null
24458
24517
  createdAt?: Date | string
@@ -24469,6 +24528,9 @@ export namespace Prisma {
24469
24528
  error?: NullableStringFieldUpdateOperationsInput | string | null
24470
24529
  retryable?: BoolFieldUpdateOperationsInput | boolean
24471
24530
  trace?: InputJsonValue | InputJsonValue
24531
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
24532
+ waitingFor?: InputJsonValue | InputJsonValue | null
24533
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24472
24534
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24473
24535
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24474
24536
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24487,6 +24549,9 @@ export namespace Prisma {
24487
24549
  error?: NullableStringFieldUpdateOperationsInput | string | null
24488
24550
  retryable?: BoolFieldUpdateOperationsInput | boolean
24489
24551
  trace?: InputJsonValue | InputJsonValue
24552
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
24553
+ waitingFor?: InputJsonValue | InputJsonValue | null
24554
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24490
24555
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24491
24556
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24492
24557
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24505,6 +24570,9 @@ export namespace Prisma {
24505
24570
  error?: string | null
24506
24571
  retryable?: boolean
24507
24572
  trace?: InputJsonValue
24573
+ runKey?: string | null
24574
+ waitingFor?: InputJsonValue | null
24575
+ resumeAt?: Date | string | null
24508
24576
  startedAt: Date | string
24509
24577
  endedAt?: Date | string | null
24510
24578
  createdAt?: Date | string
@@ -24521,6 +24589,9 @@ export namespace Prisma {
24521
24589
  error?: NullableStringFieldUpdateOperationsInput | string | null
24522
24590
  retryable?: BoolFieldUpdateOperationsInput | boolean
24523
24591
  trace?: InputJsonValue | InputJsonValue
24592
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
24593
+ waitingFor?: InputJsonValue | InputJsonValue | null
24594
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24524
24595
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24525
24596
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24526
24597
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -24538,6 +24609,9 @@ export namespace Prisma {
24538
24609
  error?: NullableStringFieldUpdateOperationsInput | string | null
24539
24610
  retryable?: BoolFieldUpdateOperationsInput | boolean
24540
24611
  trace?: InputJsonValue | InputJsonValue
24612
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
24613
+ waitingFor?: InputJsonValue | InputJsonValue | null
24614
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24541
24615
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24542
24616
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24543
24617
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25571,6 +25645,9 @@ export namespace Prisma {
25571
25645
  error?: SortOrder
25572
25646
  retryable?: SortOrder
25573
25647
  trace?: SortOrder
25648
+ runKey?: SortOrder
25649
+ waitingFor?: SortOrder
25650
+ resumeAt?: SortOrder
25574
25651
  startedAt?: SortOrder
25575
25652
  endedAt?: SortOrder
25576
25653
  createdAt?: SortOrder
@@ -25588,6 +25665,8 @@ export namespace Prisma {
25588
25665
  reason?: SortOrder
25589
25666
  error?: SortOrder
25590
25667
  retryable?: SortOrder
25668
+ runKey?: SortOrder
25669
+ resumeAt?: SortOrder
25591
25670
  startedAt?: SortOrder
25592
25671
  endedAt?: SortOrder
25593
25672
  createdAt?: SortOrder
@@ -25605,6 +25684,8 @@ export namespace Prisma {
25605
25684
  reason?: SortOrder
25606
25685
  error?: SortOrder
25607
25686
  retryable?: SortOrder
25687
+ runKey?: SortOrder
25688
+ resumeAt?: SortOrder
25608
25689
  startedAt?: SortOrder
25609
25690
  endedAt?: SortOrder
25610
25691
  createdAt?: SortOrder
@@ -28397,6 +28478,9 @@ export namespace Prisma {
28397
28478
  error?: string | null
28398
28479
  retryable?: boolean
28399
28480
  trace?: InputJsonValue
28481
+ runKey?: string | null
28482
+ waitingFor?: InputJsonValue | null
28483
+ resumeAt?: Date | string | null
28400
28484
  startedAt: Date | string
28401
28485
  endedAt?: Date | string | null
28402
28486
  createdAt?: Date | string
@@ -28414,6 +28498,9 @@ export namespace Prisma {
28414
28498
  error?: string | null
28415
28499
  retryable?: boolean
28416
28500
  trace?: InputJsonValue
28501
+ runKey?: string | null
28502
+ waitingFor?: InputJsonValue | null
28503
+ resumeAt?: Date | string | null
28417
28504
  startedAt: Date | string
28418
28505
  endedAt?: Date | string | null
28419
28506
  createdAt?: Date | string
@@ -28610,6 +28697,9 @@ export namespace Prisma {
28610
28697
  error?: StringNullableFilter<"WorkflowRun"> | string | null
28611
28698
  retryable?: BoolFilter<"WorkflowRun"> | boolean
28612
28699
  trace?: JsonFilter<"WorkflowRun">
28700
+ runKey?: StringNullableFilter<"WorkflowRun"> | string | null
28701
+ waitingFor?: JsonNullableFilter<"WorkflowRun">
28702
+ resumeAt?: DateTimeNullableFilter<"WorkflowRun"> | Date | string | null
28613
28703
  startedAt?: DateTimeFilter<"WorkflowRun"> | Date | string
28614
28704
  endedAt?: DateTimeNullableFilter<"WorkflowRun"> | Date | string | null
28615
28705
  createdAt?: DateTimeFilter<"WorkflowRun"> | Date | string
@@ -30071,6 +30161,9 @@ export namespace Prisma {
30071
30161
  error?: string | null
30072
30162
  retryable?: boolean
30073
30163
  trace?: InputJsonValue
30164
+ runKey?: string | null
30165
+ waitingFor?: InputJsonValue | null
30166
+ resumeAt?: Date | string | null
30074
30167
  startedAt: Date | string
30075
30168
  endedAt?: Date | string | null
30076
30169
  createdAt?: Date | string
@@ -30231,6 +30324,9 @@ export namespace Prisma {
30231
30324
  error?: NullableStringFieldUpdateOperationsInput | string | null
30232
30325
  retryable?: BoolFieldUpdateOperationsInput | boolean
30233
30326
  trace?: InputJsonValue | InputJsonValue
30327
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
30328
+ waitingFor?: InputJsonValue | InputJsonValue | null
30329
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30234
30330
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
30235
30331
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30236
30332
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30247,6 +30343,9 @@ export namespace Prisma {
30247
30343
  error?: NullableStringFieldUpdateOperationsInput | string | null
30248
30344
  retryable?: BoolFieldUpdateOperationsInput | boolean
30249
30345
  trace?: InputJsonValue | InputJsonValue
30346
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
30347
+ waitingFor?: InputJsonValue | InputJsonValue | null
30348
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30250
30349
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
30251
30350
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30252
30351
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -30263,6 +30362,9 @@ export namespace Prisma {
30263
30362
  error?: NullableStringFieldUpdateOperationsInput | string | null
30264
30363
  retryable?: BoolFieldUpdateOperationsInput | boolean
30265
30364
  trace?: InputJsonValue | InputJsonValue
30365
+ runKey?: NullableStringFieldUpdateOperationsInput | string | null
30366
+ waitingFor?: InputJsonValue | InputJsonValue | null
30367
+ resumeAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30266
30368
  startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
30267
30369
  endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30268
30370
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string