@relayfile/adapter-core 0.3.25 → 0.3.27

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 (49) hide show
  1. package/dist/src/cli.js +88 -0
  2. package/dist/src/cli.js.map +1 -1
  3. package/dist/src/index.d.ts +3 -0
  4. package/dist/src/index.d.ts.map +1 -1
  5. package/dist/src/index.js +3 -0
  6. package/dist/src/index.js.map +1 -1
  7. package/dist/src/proactive/review-adapter.d.ts +107 -0
  8. package/dist/src/proactive/review-adapter.d.ts.map +1 -0
  9. package/dist/src/proactive/review-adapter.js +2 -0
  10. package/dist/src/proactive/review-adapter.js.map +1 -0
  11. package/dist/src/scope-keys/catalog-generator.d.ts +39 -0
  12. package/dist/src/scope-keys/catalog-generator.d.ts.map +1 -0
  13. package/dist/src/scope-keys/catalog-generator.js +393 -0
  14. package/dist/src/scope-keys/catalog-generator.js.map +1 -0
  15. package/dist/src/scope-keys/catalog.generated.d.ts +209 -0
  16. package/dist/src/scope-keys/catalog.generated.d.ts.map +1 -0
  17. package/dist/src/scope-keys/catalog.generated.js +250 -0
  18. package/dist/src/scope-keys/catalog.generated.js.map +1 -0
  19. package/dist/src/triggers/catalog-generator.js +2 -1
  20. package/dist/src/triggers/catalog-generator.js.map +1 -1
  21. package/dist/src/triggers/catalog.generated.d.ts +1 -5
  22. package/dist/src/triggers/catalog.generated.d.ts.map +1 -1
  23. package/dist/src/triggers/catalog.generated.js +3 -6
  24. package/dist/src/triggers/catalog.generated.js.map +1 -1
  25. package/dist/src/writeback-paths/catalog-generator.d.ts +51 -0
  26. package/dist/src/writeback-paths/catalog-generator.d.ts.map +1 -0
  27. package/dist/src/writeback-paths/catalog-generator.js +260 -0
  28. package/dist/src/writeback-paths/catalog-generator.js.map +1 -0
  29. package/dist/src/writeback-paths/catalog.generated.d.ts +470 -0
  30. package/dist/src/writeback-paths/catalog.generated.d.ts.map +1 -0
  31. package/dist/src/writeback-paths/catalog.generated.js +737 -0
  32. package/dist/src/writeback-paths/catalog.generated.js.map +1 -0
  33. package/dist/src/writeback-paths/index.d.ts +3 -0
  34. package/dist/src/writeback-paths/index.d.ts.map +1 -0
  35. package/dist/src/writeback-paths/index.js +3 -0
  36. package/dist/src/writeback-paths/index.js.map +1 -0
  37. package/dist/src/writeback-paths/resolver.d.ts +24 -0
  38. package/dist/src/writeback-paths/resolver.d.ts.map +1 -0
  39. package/dist/src/writeback-paths/resolver.js +59 -0
  40. package/dist/src/writeback-paths/resolver.js.map +1 -0
  41. package/dist/tests/scope-keys/catalog-generator.test.d.ts +2 -0
  42. package/dist/tests/scope-keys/catalog-generator.test.d.ts.map +1 -0
  43. package/dist/tests/scope-keys/catalog-generator.test.js +23 -0
  44. package/dist/tests/scope-keys/catalog-generator.test.js.map +1 -0
  45. package/dist/tests/writeback-paths/catalog-generator.test.d.ts +2 -0
  46. package/dist/tests/writeback-paths/catalog-generator.test.d.ts.map +1 -0
  47. package/dist/tests/writeback-paths/catalog-generator.test.js +56 -0
  48. package/dist/tests/writeback-paths/catalog-generator.test.js.map +1 -0
  49. package/package.json +9 -1
@@ -0,0 +1,737 @@
1
+ /**
2
+ * Generated by `adapter-core writeback-paths generate`.
3
+ *
4
+ * Writeback path templates are emitted verbatim from each adapter's
5
+ * `resources.ts` (`{ name, path }`) — the same source the writeback worker's
6
+ * `classifyWrite` routes drafts against. A consumer resolves a concrete draft
7
+ * path with `writebackPath(provider, resource, params)`.
8
+ */
9
+ export const WRITEBACK_PATH_CATALOG = {
10
+ "asana": {
11
+ "projects": [
12
+ {
13
+ "path": "/asana/projects",
14
+ "params": []
15
+ }
16
+ ],
17
+ "sections": [
18
+ {
19
+ "path": "/asana/projects/{projectId}/sections",
20
+ "params": [
21
+ "projectId"
22
+ ]
23
+ },
24
+ {
25
+ "path": "/asana/sections",
26
+ "params": []
27
+ }
28
+ ],
29
+ "tasks": [
30
+ {
31
+ "path": "/asana/tasks",
32
+ "params": []
33
+ }
34
+ ]
35
+ },
36
+ "azure-blob": {
37
+ "blobs": [
38
+ {
39
+ "path": "/azure-blob/blobs",
40
+ "params": []
41
+ }
42
+ ],
43
+ "event-subscriptions": [
44
+ {
45
+ "path": "/azure-blob/event-subscriptions",
46
+ "params": []
47
+ }
48
+ ]
49
+ },
50
+ "box": {
51
+ "files": [
52
+ {
53
+ "path": "/box/files",
54
+ "params": []
55
+ }
56
+ ],
57
+ "webhooks": [
58
+ {
59
+ "path": "/box/webhooks",
60
+ "params": []
61
+ }
62
+ ]
63
+ },
64
+ "clickup": {
65
+ "comments": [
66
+ {
67
+ "path": "/clickup/tasks/{taskId}/comments",
68
+ "params": [
69
+ "taskId"
70
+ ]
71
+ }
72
+ ],
73
+ "folders": [
74
+ {
75
+ "path": "/clickup/spaces/{spaceId}/folders",
76
+ "params": [
77
+ "spaceId"
78
+ ]
79
+ }
80
+ ],
81
+ "lists": [
82
+ {
83
+ "path": "/clickup/folders/{folderId}/lists",
84
+ "params": [
85
+ "folderId"
86
+ ]
87
+ },
88
+ {
89
+ "path": "/clickup/spaces/{spaceId}/lists",
90
+ "params": [
91
+ "spaceId"
92
+ ]
93
+ }
94
+ ],
95
+ "tasks": [
96
+ {
97
+ "path": "/clickup/lists/{listId}/tasks",
98
+ "params": [
99
+ "listId"
100
+ ]
101
+ }
102
+ ]
103
+ },
104
+ "confluence": {
105
+ "pages": [
106
+ {
107
+ "path": "/confluence/pages",
108
+ "params": []
109
+ },
110
+ {
111
+ "path": "/confluence/spaces/{spaceIdOrKey}/pages",
112
+ "params": [
113
+ "spaceIdOrKey"
114
+ ]
115
+ }
116
+ ]
117
+ },
118
+ "dropbox": {
119
+ "files": [
120
+ {
121
+ "path": "/dropbox/files",
122
+ "params": []
123
+ }
124
+ ],
125
+ "folders": [
126
+ {
127
+ "path": "/dropbox/folders",
128
+ "params": []
129
+ }
130
+ ],
131
+ "shared-folders": [
132
+ {
133
+ "path": "/dropbox/shared-folders",
134
+ "params": []
135
+ }
136
+ ],
137
+ "shared-links": [
138
+ {
139
+ "path": "/dropbox/shared-links",
140
+ "params": []
141
+ }
142
+ ]
143
+ },
144
+ "gcs": {
145
+ "notifications": [
146
+ {
147
+ "path": "/gcs/notifications",
148
+ "params": []
149
+ }
150
+ ],
151
+ "objects": [
152
+ {
153
+ "path": "/gcs/objects",
154
+ "params": []
155
+ }
156
+ ]
157
+ },
158
+ "github": {
159
+ "issue-comments": [
160
+ {
161
+ "path": "/github/repos/{owner}/{repo}/issues/{issueNumber}/comments",
162
+ "params": [
163
+ "owner",
164
+ "repo",
165
+ "issueNumber"
166
+ ]
167
+ }
168
+ ],
169
+ "issues": [
170
+ {
171
+ "path": "/github/repos/{owner}/{repo}/issues",
172
+ "params": [
173
+ "owner",
174
+ "repo"
175
+ ]
176
+ }
177
+ ],
178
+ "merge": [
179
+ {
180
+ "path": "/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json",
181
+ "params": [
182
+ "owner",
183
+ "repo",
184
+ "pullNumber"
185
+ ]
186
+ }
187
+ ],
188
+ "reviews": [
189
+ {
190
+ "path": "/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews",
191
+ "params": [
192
+ "owner",
193
+ "repo",
194
+ "pullNumber"
195
+ ]
196
+ }
197
+ ]
198
+ },
199
+ "gitlab": {
200
+ "comments": [
201
+ {
202
+ "path": "/gitlab/projects/{projectPath}/issues/{issueIid}__{slug}/comments",
203
+ "params": [
204
+ "projectPath",
205
+ "issueIid",
206
+ "slug"
207
+ ]
208
+ }
209
+ ],
210
+ "discussions": [
211
+ {
212
+ "path": "/gitlab/projects/{projectPath}/merge_requests/{mergeRequestIid}__{slug}/discussions",
213
+ "params": [
214
+ "projectPath",
215
+ "mergeRequestIid",
216
+ "slug"
217
+ ]
218
+ }
219
+ ]
220
+ },
221
+ "gmail": {
222
+ "drafts": [
223
+ {
224
+ "path": "/gmail/drafts",
225
+ "params": []
226
+ }
227
+ ],
228
+ "threads": [
229
+ {
230
+ "path": "/gmail/threads",
231
+ "params": []
232
+ }
233
+ ],
234
+ "watches": [
235
+ {
236
+ "path": "/gmail/watches",
237
+ "params": []
238
+ }
239
+ ]
240
+ },
241
+ "google-calendar": {
242
+ "events": [
243
+ {
244
+ "path": "/google-calendar/calendars/{calendarId}/events",
245
+ "params": [
246
+ "calendarId"
247
+ ]
248
+ }
249
+ ]
250
+ },
251
+ "google-drive": {
252
+ "channels": [
253
+ {
254
+ "path": "/google-drive/channels",
255
+ "params": []
256
+ }
257
+ ],
258
+ "files": [
259
+ {
260
+ "path": "/google-drive/files",
261
+ "params": []
262
+ }
263
+ ]
264
+ },
265
+ "granola": {
266
+ "folders": [
267
+ {
268
+ "path": "/granola/folders",
269
+ "params": []
270
+ }
271
+ ],
272
+ "notes": [
273
+ {
274
+ "path": "/granola/notes",
275
+ "params": []
276
+ }
277
+ ]
278
+ },
279
+ "hubspot": {
280
+ "companies": [
281
+ {
282
+ "path": "/hubspot/companies",
283
+ "params": []
284
+ }
285
+ ],
286
+ "contacts": [
287
+ {
288
+ "path": "/hubspot/contacts",
289
+ "params": []
290
+ }
291
+ ],
292
+ "deals": [
293
+ {
294
+ "path": "/hubspot/deals",
295
+ "params": []
296
+ }
297
+ ],
298
+ "tickets": [
299
+ {
300
+ "path": "/hubspot/tickets",
301
+ "params": []
302
+ }
303
+ ]
304
+ },
305
+ "intercom": {
306
+ "companies": [
307
+ {
308
+ "path": "/intercom/companies",
309
+ "params": []
310
+ }
311
+ ],
312
+ "contacts": [
313
+ {
314
+ "path": "/intercom/contacts",
315
+ "params": []
316
+ }
317
+ ],
318
+ "conversations": [
319
+ {
320
+ "path": "/intercom/conversations",
321
+ "params": []
322
+ }
323
+ ]
324
+ },
325
+ "jira": {
326
+ "comments": [
327
+ {
328
+ "path": "/jira/issues/{issueIdOrKey}/comments",
329
+ "params": [
330
+ "issueIdOrKey"
331
+ ]
332
+ }
333
+ ],
334
+ "issues": [
335
+ {
336
+ "path": "/jira/issues",
337
+ "params": []
338
+ }
339
+ ],
340
+ "projects": [
341
+ {
342
+ "path": "/jira/projects",
343
+ "params": []
344
+ }
345
+ ],
346
+ "transitions": [
347
+ {
348
+ "path": "/jira/issues/{issueIdOrKey}/transitions",
349
+ "params": [
350
+ "issueIdOrKey"
351
+ ]
352
+ }
353
+ ]
354
+ },
355
+ "linear": {
356
+ "comments": [
357
+ {
358
+ "path": "/linear/issues/{issueId}/comments",
359
+ "params": [
360
+ "issueId"
361
+ ]
362
+ }
363
+ ],
364
+ "issues": [
365
+ {
366
+ "path": "/linear/issues",
367
+ "params": []
368
+ }
369
+ ]
370
+ },
371
+ "notion": {
372
+ "comments": [
373
+ {
374
+ "path": "/notion/databases/{databaseId}/pages/{pageId}/comments.json",
375
+ "params": [
376
+ "databaseId",
377
+ "pageId"
378
+ ]
379
+ },
380
+ {
381
+ "path": "/notion/pages/{pageId}/comments.json",
382
+ "params": [
383
+ "pageId"
384
+ ]
385
+ }
386
+ ],
387
+ "content": [
388
+ {
389
+ "path": "/notion/databases/{databaseId}/pages/{pageId}/content.md",
390
+ "params": [
391
+ "databaseId",
392
+ "pageId"
393
+ ]
394
+ },
395
+ {
396
+ "path": "/notion/pages/{pageId}/content.md",
397
+ "params": [
398
+ "pageId"
399
+ ]
400
+ }
401
+ ],
402
+ "pages": [
403
+ {
404
+ "path": "/notion/databases/{databaseId}/pages",
405
+ "params": [
406
+ "databaseId"
407
+ ]
408
+ },
409
+ {
410
+ "path": "/notion/databases/{databaseId}/pages/{pageId}.json",
411
+ "params": [
412
+ "databaseId",
413
+ "pageId"
414
+ ]
415
+ },
416
+ {
417
+ "path": "/notion/pages/{pageId}.json",
418
+ "params": [
419
+ "pageId"
420
+ ]
421
+ }
422
+ ],
423
+ "properties": [
424
+ {
425
+ "path": "/notion/databases/{databaseId}/pages/{pageId}/properties.json",
426
+ "params": [
427
+ "databaseId",
428
+ "pageId"
429
+ ]
430
+ },
431
+ {
432
+ "path": "/notion/pages/{pageId}/properties.json",
433
+ "params": [
434
+ "pageId"
435
+ ]
436
+ }
437
+ ]
438
+ },
439
+ "onedrive": {
440
+ "items": [
441
+ {
442
+ "path": "/onedrive/items",
443
+ "params": []
444
+ }
445
+ ],
446
+ "subscriptions": [
447
+ {
448
+ "path": "/onedrive/subscriptions",
449
+ "params": []
450
+ }
451
+ ]
452
+ },
453
+ "pipedrive": {
454
+ "activities": [
455
+ {
456
+ "path": "/pipedrive/activities",
457
+ "params": []
458
+ }
459
+ ],
460
+ "deals": [
461
+ {
462
+ "path": "/pipedrive/deals",
463
+ "params": []
464
+ }
465
+ ],
466
+ "organizations": [
467
+ {
468
+ "path": "/pipedrive/organizations",
469
+ "params": []
470
+ }
471
+ ],
472
+ "persons": [
473
+ {
474
+ "path": "/pipedrive/persons",
475
+ "params": []
476
+ }
477
+ ]
478
+ },
479
+ "postgres": {
480
+ "listeners": [
481
+ {
482
+ "path": "/postgres/listeners",
483
+ "params": []
484
+ }
485
+ ],
486
+ "rows": [
487
+ {
488
+ "path": "/postgres/rows",
489
+ "params": []
490
+ }
491
+ ]
492
+ },
493
+ "reddit": {
494
+ "posts": [
495
+ {
496
+ "path": "/reddit/subreddits/{subreddit}/posts",
497
+ "params": [
498
+ "subreddit"
499
+ ]
500
+ }
501
+ ],
502
+ "subreddits": [
503
+ {
504
+ "path": "/reddit/subreddits",
505
+ "params": []
506
+ }
507
+ ]
508
+ },
509
+ "redis": {
510
+ "keys": [
511
+ {
512
+ "path": "/redis/keys",
513
+ "params": []
514
+ }
515
+ ],
516
+ "listeners": [
517
+ {
518
+ "path": "/redis/listeners",
519
+ "params": []
520
+ }
521
+ ]
522
+ },
523
+ "s3": {
524
+ "objects": [
525
+ {
526
+ "path": "/s3/objects",
527
+ "params": []
528
+ }
529
+ ],
530
+ "queues": [
531
+ {
532
+ "path": "/s3/queues",
533
+ "params": []
534
+ }
535
+ ]
536
+ },
537
+ "salesforce": {
538
+ "accounts": [
539
+ {
540
+ "path": "/salesforce/accounts",
541
+ "params": []
542
+ }
543
+ ],
544
+ "cases": [
545
+ {
546
+ "path": "/salesforce/cases",
547
+ "params": []
548
+ }
549
+ ],
550
+ "contacts": [
551
+ {
552
+ "path": "/salesforce/contacts",
553
+ "params": []
554
+ }
555
+ ],
556
+ "leads": [
557
+ {
558
+ "path": "/salesforce/leads",
559
+ "params": []
560
+ }
561
+ ],
562
+ "opportunities": [
563
+ {
564
+ "path": "/salesforce/opportunities",
565
+ "params": []
566
+ }
567
+ ]
568
+ },
569
+ "sharepoint": {
570
+ "items": [
571
+ {
572
+ "path": "/sharepoint/items",
573
+ "params": []
574
+ }
575
+ ],
576
+ "subscriptions": [
577
+ {
578
+ "path": "/sharepoint/subscriptions",
579
+ "params": []
580
+ }
581
+ ]
582
+ },
583
+ "slack": {
584
+ "direct-messages": [
585
+ {
586
+ "path": "/slack/users/{userId}/messages",
587
+ "params": [
588
+ "userId"
589
+ ]
590
+ }
591
+ ],
592
+ "messages": [
593
+ {
594
+ "path": "/slack/channels/{channelId}/messages",
595
+ "params": [
596
+ "channelId"
597
+ ]
598
+ }
599
+ ],
600
+ "reactions": [
601
+ {
602
+ "path": "/slack/channels/{channelId}/messages/{messageTs}/reactions",
603
+ "params": [
604
+ "channelId",
605
+ "messageTs"
606
+ ]
607
+ }
608
+ ],
609
+ "replies": [
610
+ {
611
+ "path": "/slack/channels/{channelId}/messages/{messageTs}/replies",
612
+ "params": [
613
+ "channelId",
614
+ "messageTs"
615
+ ]
616
+ }
617
+ ]
618
+ },
619
+ "teams": {
620
+ "messages": [
621
+ {
622
+ "path": "/teams/{teamId}/channels/{channelId}/messages",
623
+ "params": [
624
+ "teamId",
625
+ "channelId"
626
+ ]
627
+ },
628
+ {
629
+ "path": "/teams/chats/{chatId}/messages",
630
+ "params": [
631
+ "chatId"
632
+ ]
633
+ }
634
+ ],
635
+ "replies": [
636
+ {
637
+ "path": "/teams/{teamId}/channels/{channelId}/messages/{messageId}/replies",
638
+ "params": [
639
+ "teamId",
640
+ "channelId",
641
+ "messageId"
642
+ ]
643
+ }
644
+ ]
645
+ },
646
+ "zendesk": {
647
+ "comments": [
648
+ {
649
+ "path": "/zendesk/tickets/{ticketId}/comments",
650
+ "params": [
651
+ "ticketId"
652
+ ]
653
+ }
654
+ ],
655
+ "tickets": [
656
+ {
657
+ "path": "/zendesk/tickets",
658
+ "params": []
659
+ }
660
+ ],
661
+ "users": [
662
+ {
663
+ "path": "/zendesk/users",
664
+ "params": []
665
+ }
666
+ ]
667
+ }
668
+ };
669
+ export const ADAPTERS_WITHOUT_WRITEBACK_PATHS = [
670
+ {
671
+ "packageName": "@relayfile/adapter-airtable",
672
+ "packagePath": "packages/airtable",
673
+ "provider": "airtable",
674
+ "reason": "No resources.ts with writeback path templates"
675
+ },
676
+ {
677
+ "packageName": "@relayfile/adapter-calendly",
678
+ "packagePath": "packages/calendly",
679
+ "provider": "calendly",
680
+ "reason": "No resources.ts with writeback path templates"
681
+ },
682
+ {
683
+ "packageName": "@relayfile/adapter-docker-hub",
684
+ "packagePath": "packages/docker-hub",
685
+ "provider": "docker-hub",
686
+ "reason": "No resources.ts with writeback path templates"
687
+ },
688
+ {
689
+ "packageName": "@relayfile/adapter-fathom",
690
+ "packagePath": "packages/fathom",
691
+ "provider": "fathom",
692
+ "reason": "No resources.ts with writeback path templates"
693
+ },
694
+ {
695
+ "packageName": "@relayfile/adapter-mailgun",
696
+ "packagePath": "packages/mailgun",
697
+ "provider": "mailgun",
698
+ "reason": "No resources.ts with writeback path templates"
699
+ },
700
+ {
701
+ "packageName": "@relayfile/adapter-mixpanel",
702
+ "packagePath": "packages/mixpanel",
703
+ "provider": "mixpanel",
704
+ "reason": "No resources.ts with writeback path templates"
705
+ },
706
+ {
707
+ "packageName": "@relayfile/adapter-segment",
708
+ "packagePath": "packages/segment",
709
+ "provider": "segment",
710
+ "reason": "No resources.ts with writeback path templates"
711
+ },
712
+ {
713
+ "packageName": "@relayfile/adapter-sendgrid",
714
+ "packagePath": "packages/sendgrid",
715
+ "provider": "sendgrid",
716
+ "reason": "No resources.ts with writeback path templates"
717
+ },
718
+ {
719
+ "packageName": "@relayfile/adapter-shopify",
720
+ "packagePath": "packages/shopify",
721
+ "provider": "shopify",
722
+ "reason": "No resources.ts with writeback path templates"
723
+ },
724
+ {
725
+ "packageName": "@relayfile/adapter-stripe",
726
+ "packagePath": "packages/stripe",
727
+ "provider": "stripe",
728
+ "reason": "No resources.ts with writeback path templates"
729
+ },
730
+ {
731
+ "packageName": "@relayfile/adapter-x",
732
+ "packagePath": "packages/x",
733
+ "provider": "x",
734
+ "reason": "No resources.ts with writeback path templates"
735
+ }
736
+ ];
737
+ //# sourceMappingURL=catalog.generated.js.map