@frogbotai/piece-trello 0.39.0 → 0.40.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/README.md +5 -5
- package/dist/actions.js +2 -2
- package/dist/actions.js.map +1 -1
- package/dist/define.d.ts +368 -244
- package/dist/define.d.ts.map +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +2 -2
- package/dist/files.js.map +1 -1
- package/dist/index.d.ts +407 -252
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +407 -252
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +7 -3
- package/dist/triggers.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -468,88 +468,51 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
468
468
|
} | undefined;
|
|
469
469
|
} & {
|
|
470
470
|
type: "webhook";
|
|
471
|
-
onEnable(args:
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
471
|
+
onEnable(args: {
|
|
472
|
+
client: {
|
|
473
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
474
|
+
query?: {
|
|
475
|
+
[x: string]: string | number | boolean | undefined;
|
|
476
|
+
};
|
|
477
|
+
}) => Promise<T>;
|
|
478
|
+
authorize(url: URL): void;
|
|
479
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
480
|
+
listAll<T extends {
|
|
481
|
+
id: string;
|
|
482
|
+
}>(path: string): Promise<T[]>;
|
|
483
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
484
|
+
listBoards: () => Promise<{
|
|
485
|
+
id: string;
|
|
486
|
+
name: string;
|
|
487
|
+
}[]>;
|
|
488
|
+
listLists: (boardId: string) => Promise<{
|
|
489
|
+
id: string;
|
|
490
|
+
name: string;
|
|
491
|
+
}[]>;
|
|
492
|
+
listLabels: (boardId: string) => Promise<{
|
|
493
|
+
color: string;
|
|
494
|
+
id: string;
|
|
495
|
+
name: string;
|
|
496
|
+
}[]>;
|
|
497
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
498
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
499
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
500
|
+
};
|
|
501
|
+
input: {
|
|
502
|
+
boardId: string;
|
|
503
|
+
listId?: string | undefined;
|
|
504
|
+
};
|
|
505
|
+
options: Record<string, never>;
|
|
506
|
+
req: import("frogbot").FrogBotRequest;
|
|
507
|
+
} & {
|
|
503
508
|
webhookUrl: string;
|
|
504
509
|
}): Promise<{
|
|
505
510
|
webhookId: string;
|
|
506
511
|
webhookUrl: string;
|
|
507
512
|
owned: boolean;
|
|
508
513
|
}>;
|
|
509
|
-
onDisable(args:
|
|
510
|
-
|
|
511
|
-
listId?: string | undefined;
|
|
512
|
-
}, Record<string, never>, {
|
|
513
|
-
request: <T>(path: string, init?: RequestInit & {
|
|
514
|
-
query?: {
|
|
515
|
-
[x: string]: string | number | boolean | undefined;
|
|
516
|
-
};
|
|
517
|
-
}) => Promise<T>;
|
|
518
|
-
authorize(url: URL): void;
|
|
519
|
-
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
520
|
-
listAll<T extends {
|
|
521
|
-
id: string;
|
|
522
|
-
}>(path: string): Promise<T[]>;
|
|
523
|
-
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
524
|
-
listBoards: () => Promise<{
|
|
525
|
-
id: string;
|
|
526
|
-
name: string;
|
|
527
|
-
}[]>;
|
|
528
|
-
listLists: (boardId: string) => Promise<{
|
|
529
|
-
id: string;
|
|
530
|
-
name: string;
|
|
531
|
-
}[]>;
|
|
532
|
-
listLabels: (boardId: string) => Promise<{
|
|
533
|
-
color: string;
|
|
534
|
-
id: string;
|
|
535
|
-
name: string;
|
|
536
|
-
}[]>;
|
|
537
|
-
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
538
|
-
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
539
|
-
deleteWebhook: (id: string) => Promise<unknown>;
|
|
540
|
-
}> & {
|
|
541
|
-
state: {
|
|
542
|
-
webhookId: string;
|
|
543
|
-
webhookUrl: string;
|
|
544
|
-
owned: boolean;
|
|
545
|
-
};
|
|
546
|
-
}): Promise<void>;
|
|
547
|
-
renew?: {
|
|
548
|
-
schedule: string;
|
|
549
|
-
run(args: import("frogbot").PieceRunArgs<{
|
|
550
|
-
boardId: string;
|
|
551
|
-
listId?: string | undefined;
|
|
552
|
-
}, Record<string, never>, {
|
|
514
|
+
onDisable(args: {
|
|
515
|
+
client: {
|
|
553
516
|
request: <T>(path: string, init?: RequestInit & {
|
|
554
517
|
query?: {
|
|
555
518
|
[x: string]: string | number | boolean | undefined;
|
|
@@ -577,7 +540,59 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
577
540
|
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
578
541
|
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
579
542
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
580
|
-
}
|
|
543
|
+
};
|
|
544
|
+
input: {
|
|
545
|
+
boardId: string;
|
|
546
|
+
listId?: string | undefined;
|
|
547
|
+
};
|
|
548
|
+
options: Record<string, never>;
|
|
549
|
+
req: import("frogbot").FrogBotRequest;
|
|
550
|
+
} & {
|
|
551
|
+
state: {
|
|
552
|
+
webhookId: string;
|
|
553
|
+
webhookUrl: string;
|
|
554
|
+
owned: boolean;
|
|
555
|
+
};
|
|
556
|
+
}): Promise<void>;
|
|
557
|
+
renew?: {
|
|
558
|
+
schedule: string;
|
|
559
|
+
run(args: {
|
|
560
|
+
client: {
|
|
561
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
562
|
+
query?: {
|
|
563
|
+
[x: string]: string | number | boolean | undefined;
|
|
564
|
+
};
|
|
565
|
+
}) => Promise<T>;
|
|
566
|
+
authorize(url: URL): void;
|
|
567
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
568
|
+
listAll<T extends {
|
|
569
|
+
id: string;
|
|
570
|
+
}>(path: string): Promise<T[]>;
|
|
571
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
572
|
+
listBoards: () => Promise<{
|
|
573
|
+
id: string;
|
|
574
|
+
name: string;
|
|
575
|
+
}[]>;
|
|
576
|
+
listLists: (boardId: string) => Promise<{
|
|
577
|
+
id: string;
|
|
578
|
+
name: string;
|
|
579
|
+
}[]>;
|
|
580
|
+
listLabels: (boardId: string) => Promise<{
|
|
581
|
+
color: string;
|
|
582
|
+
id: string;
|
|
583
|
+
name: string;
|
|
584
|
+
}[]>;
|
|
585
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
586
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
587
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
588
|
+
};
|
|
589
|
+
input: {
|
|
590
|
+
boardId: string;
|
|
591
|
+
listId?: string | undefined;
|
|
592
|
+
};
|
|
593
|
+
options: Record<string, never>;
|
|
594
|
+
req: import("frogbot").FrogBotRequest;
|
|
595
|
+
} & {
|
|
581
596
|
state: {
|
|
582
597
|
webhookId: string;
|
|
583
598
|
webhookUrl: string;
|
|
@@ -590,38 +605,43 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
590
605
|
owned: boolean;
|
|
591
606
|
}>;
|
|
592
607
|
} | undefined;
|
|
593
|
-
run(args:
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
608
|
+
run(args: {
|
|
609
|
+
client: {
|
|
610
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
611
|
+
query?: {
|
|
612
|
+
[x: string]: string | number | boolean | undefined;
|
|
613
|
+
};
|
|
614
|
+
}) => Promise<T>;
|
|
615
|
+
authorize(url: URL): void;
|
|
616
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
617
|
+
listAll<T extends {
|
|
618
|
+
id: string;
|
|
619
|
+
}>(path: string): Promise<T[]>;
|
|
620
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
621
|
+
listBoards: () => Promise<{
|
|
622
|
+
id: string;
|
|
623
|
+
name: string;
|
|
624
|
+
}[]>;
|
|
625
|
+
listLists: (boardId: string) => Promise<{
|
|
626
|
+
id: string;
|
|
627
|
+
name: string;
|
|
628
|
+
}[]>;
|
|
629
|
+
listLabels: (boardId: string) => Promise<{
|
|
630
|
+
color: string;
|
|
631
|
+
id: string;
|
|
632
|
+
name: string;
|
|
633
|
+
}[]>;
|
|
634
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
635
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
636
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
637
|
+
};
|
|
638
|
+
input: {
|
|
639
|
+
boardId: string;
|
|
640
|
+
listId?: string | undefined;
|
|
641
|
+
};
|
|
642
|
+
options: Record<string, never>;
|
|
643
|
+
req: import("frogbot").FrogBotRequest;
|
|
644
|
+
} & {
|
|
625
645
|
state: {
|
|
626
646
|
webhookId: string;
|
|
627
647
|
webhookUrl: string;
|
|
@@ -639,6 +659,61 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
639
659
|
dateLastActivity?: string | undefined;
|
|
640
660
|
url?: string | undefined;
|
|
641
661
|
}>[]>;
|
|
662
|
+
reply?(args: {
|
|
663
|
+
client: {
|
|
664
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
665
|
+
query?: {
|
|
666
|
+
[x: string]: string | number | boolean | undefined;
|
|
667
|
+
};
|
|
668
|
+
}) => Promise<T>;
|
|
669
|
+
authorize(url: URL): void;
|
|
670
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
671
|
+
listAll<T extends {
|
|
672
|
+
id: string;
|
|
673
|
+
}>(path: string): Promise<T[]>;
|
|
674
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
675
|
+
listBoards: () => Promise<{
|
|
676
|
+
id: string;
|
|
677
|
+
name: string;
|
|
678
|
+
}[]>;
|
|
679
|
+
listLists: (boardId: string) => Promise<{
|
|
680
|
+
id: string;
|
|
681
|
+
name: string;
|
|
682
|
+
}[]>;
|
|
683
|
+
listLabels: (boardId: string) => Promise<{
|
|
684
|
+
color: string;
|
|
685
|
+
id: string;
|
|
686
|
+
name: string;
|
|
687
|
+
}[]>;
|
|
688
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
689
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
690
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
691
|
+
};
|
|
692
|
+
input: {
|
|
693
|
+
boardId: string;
|
|
694
|
+
listId?: string | undefined;
|
|
695
|
+
};
|
|
696
|
+
options: Record<string, never>;
|
|
697
|
+
req: import("frogbot").FrogBotRequest;
|
|
698
|
+
} & {
|
|
699
|
+
state: {
|
|
700
|
+
webhookId: string;
|
|
701
|
+
webhookUrl: string;
|
|
702
|
+
owned: boolean;
|
|
703
|
+
};
|
|
704
|
+
events: import("frogbot").TriggerEvent<{
|
|
705
|
+
[x: string]: unknown;
|
|
706
|
+
id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
desc?: string | undefined;
|
|
709
|
+
idBoard?: string | undefined;
|
|
710
|
+
idList?: string | undefined;
|
|
711
|
+
due?: string | null | undefined;
|
|
712
|
+
dueComplete?: boolean | undefined;
|
|
713
|
+
dateLastActivity?: string | undefined;
|
|
714
|
+
url?: string | undefined;
|
|
715
|
+
}>[];
|
|
716
|
+
}): Response | Promise<Response>;
|
|
642
717
|
} & {
|
|
643
718
|
slug: "cardCreated";
|
|
644
719
|
}, {
|
|
@@ -674,88 +749,51 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
674
749
|
} | undefined;
|
|
675
750
|
} & {
|
|
676
751
|
type: "webhook";
|
|
677
|
-
onEnable(args:
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
752
|
+
onEnable(args: {
|
|
753
|
+
client: {
|
|
754
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
755
|
+
query?: {
|
|
756
|
+
[x: string]: string | number | boolean | undefined;
|
|
757
|
+
};
|
|
758
|
+
}) => Promise<T>;
|
|
759
|
+
authorize(url: URL): void;
|
|
760
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
761
|
+
listAll<T extends {
|
|
762
|
+
id: string;
|
|
763
|
+
}>(path: string): Promise<T[]>;
|
|
764
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
765
|
+
listBoards: () => Promise<{
|
|
766
|
+
id: string;
|
|
767
|
+
name: string;
|
|
768
|
+
}[]>;
|
|
769
|
+
listLists: (boardId: string) => Promise<{
|
|
770
|
+
id: string;
|
|
771
|
+
name: string;
|
|
772
|
+
}[]>;
|
|
773
|
+
listLabels: (boardId: string) => Promise<{
|
|
774
|
+
color: string;
|
|
775
|
+
id: string;
|
|
776
|
+
name: string;
|
|
777
|
+
}[]>;
|
|
778
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
779
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
780
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
781
|
+
};
|
|
782
|
+
input: {
|
|
783
|
+
boardId: string;
|
|
784
|
+
listId: string;
|
|
785
|
+
};
|
|
786
|
+
options: Record<string, never>;
|
|
787
|
+
req: import("frogbot").FrogBotRequest;
|
|
788
|
+
} & {
|
|
709
789
|
webhookUrl: string;
|
|
710
790
|
}): Promise<{
|
|
711
791
|
webhookId: string;
|
|
712
792
|
webhookUrl: string;
|
|
713
793
|
owned: boolean;
|
|
714
794
|
}>;
|
|
715
|
-
onDisable(args:
|
|
716
|
-
|
|
717
|
-
listId: string;
|
|
718
|
-
}, Record<string, never>, {
|
|
719
|
-
request: <T>(path: string, init?: RequestInit & {
|
|
720
|
-
query?: {
|
|
721
|
-
[x: string]: string | number | boolean | undefined;
|
|
722
|
-
};
|
|
723
|
-
}) => Promise<T>;
|
|
724
|
-
authorize(url: URL): void;
|
|
725
|
-
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
726
|
-
listAll<T extends {
|
|
727
|
-
id: string;
|
|
728
|
-
}>(path: string): Promise<T[]>;
|
|
729
|
-
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
730
|
-
listBoards: () => Promise<{
|
|
731
|
-
id: string;
|
|
732
|
-
name: string;
|
|
733
|
-
}[]>;
|
|
734
|
-
listLists: (boardId: string) => Promise<{
|
|
735
|
-
id: string;
|
|
736
|
-
name: string;
|
|
737
|
-
}[]>;
|
|
738
|
-
listLabels: (boardId: string) => Promise<{
|
|
739
|
-
color: string;
|
|
740
|
-
id: string;
|
|
741
|
-
name: string;
|
|
742
|
-
}[]>;
|
|
743
|
-
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
744
|
-
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
745
|
-
deleteWebhook: (id: string) => Promise<unknown>;
|
|
746
|
-
}> & {
|
|
747
|
-
state: {
|
|
748
|
-
webhookId: string;
|
|
749
|
-
webhookUrl: string;
|
|
750
|
-
owned: boolean;
|
|
751
|
-
};
|
|
752
|
-
}): Promise<void>;
|
|
753
|
-
renew?: {
|
|
754
|
-
schedule: string;
|
|
755
|
-
run(args: import("frogbot").PieceRunArgs<{
|
|
756
|
-
boardId: string;
|
|
757
|
-
listId: string;
|
|
758
|
-
}, Record<string, never>, {
|
|
795
|
+
onDisable(args: {
|
|
796
|
+
client: {
|
|
759
797
|
request: <T>(path: string, init?: RequestInit & {
|
|
760
798
|
query?: {
|
|
761
799
|
[x: string]: string | number | boolean | undefined;
|
|
@@ -783,7 +821,59 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
783
821
|
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
784
822
|
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
785
823
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
786
|
-
}
|
|
824
|
+
};
|
|
825
|
+
input: {
|
|
826
|
+
boardId: string;
|
|
827
|
+
listId: string;
|
|
828
|
+
};
|
|
829
|
+
options: Record<string, never>;
|
|
830
|
+
req: import("frogbot").FrogBotRequest;
|
|
831
|
+
} & {
|
|
832
|
+
state: {
|
|
833
|
+
webhookId: string;
|
|
834
|
+
webhookUrl: string;
|
|
835
|
+
owned: boolean;
|
|
836
|
+
};
|
|
837
|
+
}): Promise<void>;
|
|
838
|
+
renew?: {
|
|
839
|
+
schedule: string;
|
|
840
|
+
run(args: {
|
|
841
|
+
client: {
|
|
842
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
843
|
+
query?: {
|
|
844
|
+
[x: string]: string | number | boolean | undefined;
|
|
845
|
+
};
|
|
846
|
+
}) => Promise<T>;
|
|
847
|
+
authorize(url: URL): void;
|
|
848
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
849
|
+
listAll<T extends {
|
|
850
|
+
id: string;
|
|
851
|
+
}>(path: string): Promise<T[]>;
|
|
852
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
853
|
+
listBoards: () => Promise<{
|
|
854
|
+
id: string;
|
|
855
|
+
name: string;
|
|
856
|
+
}[]>;
|
|
857
|
+
listLists: (boardId: string) => Promise<{
|
|
858
|
+
id: string;
|
|
859
|
+
name: string;
|
|
860
|
+
}[]>;
|
|
861
|
+
listLabels: (boardId: string) => Promise<{
|
|
862
|
+
color: string;
|
|
863
|
+
id: string;
|
|
864
|
+
name: string;
|
|
865
|
+
}[]>;
|
|
866
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
867
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
868
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
869
|
+
};
|
|
870
|
+
input: {
|
|
871
|
+
boardId: string;
|
|
872
|
+
listId: string;
|
|
873
|
+
};
|
|
874
|
+
options: Record<string, never>;
|
|
875
|
+
req: import("frogbot").FrogBotRequest;
|
|
876
|
+
} & {
|
|
787
877
|
state: {
|
|
788
878
|
webhookId: string;
|
|
789
879
|
webhookUrl: string;
|
|
@@ -796,38 +886,43 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
796
886
|
owned: boolean;
|
|
797
887
|
}>;
|
|
798
888
|
} | undefined;
|
|
799
|
-
run(args:
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
889
|
+
run(args: {
|
|
890
|
+
client: {
|
|
891
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
892
|
+
query?: {
|
|
893
|
+
[x: string]: string | number | boolean | undefined;
|
|
894
|
+
};
|
|
895
|
+
}) => Promise<T>;
|
|
896
|
+
authorize(url: URL): void;
|
|
897
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
898
|
+
listAll<T extends {
|
|
899
|
+
id: string;
|
|
900
|
+
}>(path: string): Promise<T[]>;
|
|
901
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
902
|
+
listBoards: () => Promise<{
|
|
903
|
+
id: string;
|
|
904
|
+
name: string;
|
|
905
|
+
}[]>;
|
|
906
|
+
listLists: (boardId: string) => Promise<{
|
|
907
|
+
id: string;
|
|
908
|
+
name: string;
|
|
909
|
+
}[]>;
|
|
910
|
+
listLabels: (boardId: string) => Promise<{
|
|
911
|
+
color: string;
|
|
912
|
+
id: string;
|
|
913
|
+
name: string;
|
|
914
|
+
}[]>;
|
|
915
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
916
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
917
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
918
|
+
};
|
|
919
|
+
input: {
|
|
920
|
+
boardId: string;
|
|
921
|
+
listId: string;
|
|
922
|
+
};
|
|
923
|
+
options: Record<string, never>;
|
|
924
|
+
req: import("frogbot").FrogBotRequest;
|
|
925
|
+
} & {
|
|
831
926
|
state: {
|
|
832
927
|
webhookId: string;
|
|
833
928
|
webhookUrl: string;
|
|
@@ -845,6 +940,61 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
845
940
|
dateLastActivity?: string | undefined;
|
|
846
941
|
url?: string | undefined;
|
|
847
942
|
}>[]>;
|
|
943
|
+
reply?(args: {
|
|
944
|
+
client: {
|
|
945
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
946
|
+
query?: {
|
|
947
|
+
[x: string]: string | number | boolean | undefined;
|
|
948
|
+
};
|
|
949
|
+
}) => Promise<T>;
|
|
950
|
+
authorize(url: URL): void;
|
|
951
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
952
|
+
listAll<T extends {
|
|
953
|
+
id: string;
|
|
954
|
+
}>(path: string): Promise<T[]>;
|
|
955
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
956
|
+
listBoards: () => Promise<{
|
|
957
|
+
id: string;
|
|
958
|
+
name: string;
|
|
959
|
+
}[]>;
|
|
960
|
+
listLists: (boardId: string) => Promise<{
|
|
961
|
+
id: string;
|
|
962
|
+
name: string;
|
|
963
|
+
}[]>;
|
|
964
|
+
listLabels: (boardId: string) => Promise<{
|
|
965
|
+
color: string;
|
|
966
|
+
id: string;
|
|
967
|
+
name: string;
|
|
968
|
+
}[]>;
|
|
969
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
970
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
971
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
972
|
+
};
|
|
973
|
+
input: {
|
|
974
|
+
boardId: string;
|
|
975
|
+
listId: string;
|
|
976
|
+
};
|
|
977
|
+
options: Record<string, never>;
|
|
978
|
+
req: import("frogbot").FrogBotRequest;
|
|
979
|
+
} & {
|
|
980
|
+
state: {
|
|
981
|
+
webhookId: string;
|
|
982
|
+
webhookUrl: string;
|
|
983
|
+
owned: boolean;
|
|
984
|
+
};
|
|
985
|
+
events: import("frogbot").TriggerEvent<{
|
|
986
|
+
[x: string]: unknown;
|
|
987
|
+
id: string;
|
|
988
|
+
name: string;
|
|
989
|
+
desc?: string | undefined;
|
|
990
|
+
idBoard?: string | undefined;
|
|
991
|
+
idList?: string | undefined;
|
|
992
|
+
due?: string | null | undefined;
|
|
993
|
+
dueComplete?: boolean | undefined;
|
|
994
|
+
dateLastActivity?: string | undefined;
|
|
995
|
+
url?: string | undefined;
|
|
996
|
+
}>[];
|
|
997
|
+
}): Response | Promise<Response>;
|
|
848
998
|
} & {
|
|
849
999
|
slug: "cardMovedToList";
|
|
850
1000
|
}, {
|
|
@@ -886,40 +1036,45 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
886
1036
|
} & {
|
|
887
1037
|
type: "polling";
|
|
888
1038
|
schedule?: string;
|
|
889
|
-
run(args:
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
1039
|
+
run(args: {
|
|
1040
|
+
client: {
|
|
1041
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
1042
|
+
query?: {
|
|
1043
|
+
[x: string]: string | number | boolean | undefined;
|
|
1044
|
+
};
|
|
1045
|
+
}) => Promise<T>;
|
|
1046
|
+
authorize(url: URL): void;
|
|
1047
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
1048
|
+
listAll<T extends {
|
|
1049
|
+
id: string;
|
|
1050
|
+
}>(path: string): Promise<T[]>;
|
|
1051
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
1052
|
+
listBoards: () => Promise<{
|
|
1053
|
+
id: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
}[]>;
|
|
1056
|
+
listLists: (boardId: string) => Promise<{
|
|
1057
|
+
id: string;
|
|
1058
|
+
name: string;
|
|
1059
|
+
}[]>;
|
|
1060
|
+
listLabels: (boardId: string) => Promise<{
|
|
1061
|
+
color: string;
|
|
1062
|
+
id: string;
|
|
1063
|
+
name: string;
|
|
1064
|
+
}[]>;
|
|
1065
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
1066
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
1067
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
1068
|
+
};
|
|
1069
|
+
input: {
|
|
1070
|
+
boardId: string;
|
|
1071
|
+
timeUnit: "minutes" | "hours";
|
|
1072
|
+
timeBeforeDue: number;
|
|
1073
|
+
listId?: string | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
options: Record<string, never>;
|
|
1076
|
+
req: import("frogbot").FrogBotRequest;
|
|
1077
|
+
} & {
|
|
923
1078
|
cursor?: import("frogbot").PieceJSON | undefined;
|
|
924
1079
|
}): Promise<{
|
|
925
1080
|
events: {
|