@larksuiteoapi/node-sdk 1.0.5 → 1.0.6
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/es/index.js +1219 -870
- package/lib/index.js +1219 -870
- package/package.json +62 -55
- package/types/index.d.ts +2186 -1789
package/es/index.js
CHANGED
|
@@ -73,6 +73,12 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const httpInstance = axios.create();
|
|
76
|
+
httpInstance.interceptors.request.use((req) => {
|
|
77
|
+
if (req.headers) {
|
|
78
|
+
req.headers['User-Agent'] = 'oapi-node-sdk/1.0.0';
|
|
79
|
+
}
|
|
80
|
+
return req;
|
|
81
|
+
}, undefined, { synchronous: true });
|
|
76
82
|
httpInstance.interceptors.response.use((resp) => resp.data);
|
|
77
83
|
|
|
78
84
|
var AppType;
|
|
@@ -513,56 +519,37 @@ class Client$1 {
|
|
|
513
519
|
});
|
|
514
520
|
}),
|
|
515
521
|
},
|
|
516
|
-
|
|
522
|
+
badgeImage: {
|
|
517
523
|
/**
|
|
518
|
-
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=
|
|
524
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge_image&apiName=create&version=v1 click to debug }
|
|
519
525
|
*/
|
|
520
|
-
|
|
526
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
521
527
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
522
|
-
|
|
528
|
+
const res = yield httpInstance
|
|
523
529
|
.request({
|
|
524
|
-
url: fillApiPath(`${this.domain}/open-apis/admin/v1/
|
|
525
|
-
method: "
|
|
530
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badge_images`, path),
|
|
531
|
+
method: "POST",
|
|
526
532
|
data,
|
|
527
533
|
params,
|
|
528
|
-
headers,
|
|
534
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
529
535
|
})
|
|
530
536
|
.catch((e) => {
|
|
531
537
|
this.logger.error(formatErrors(e));
|
|
532
538
|
throw e;
|
|
533
539
|
});
|
|
540
|
+
return get(res, "data", {});
|
|
534
541
|
}),
|
|
535
542
|
},
|
|
536
|
-
|
|
537
|
-
this.application = {
|
|
538
|
-
applicationAppVersion: {
|
|
539
|
-
/**
|
|
540
|
-
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_version&apiName=patch&version=v6 click to debug }
|
|
541
|
-
*/
|
|
542
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
543
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
544
|
-
return httpInstance
|
|
545
|
-
.request({
|
|
546
|
-
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`, path),
|
|
547
|
-
method: "PATCH",
|
|
548
|
-
data,
|
|
549
|
-
params,
|
|
550
|
-
headers,
|
|
551
|
-
})
|
|
552
|
-
.catch((e) => {
|
|
553
|
-
this.logger.error(formatErrors(e));
|
|
554
|
-
throw e;
|
|
555
|
-
});
|
|
556
|
-
}),
|
|
543
|
+
badgeGrant: {
|
|
557
544
|
/**
|
|
558
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
545
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=delete&version=v1 click to debug }
|
|
559
546
|
*/
|
|
560
|
-
|
|
547
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
561
548
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
562
549
|
return httpInstance
|
|
563
550
|
.request({
|
|
564
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
565
|
-
method: "
|
|
551
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`, path),
|
|
552
|
+
method: "DELETE",
|
|
566
553
|
data,
|
|
567
554
|
params,
|
|
568
555
|
headers,
|
|
@@ -572,17 +559,15 @@ class Client$1 {
|
|
|
572
559
|
throw e;
|
|
573
560
|
});
|
|
574
561
|
}),
|
|
575
|
-
},
|
|
576
|
-
application: {
|
|
577
562
|
/**
|
|
578
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
563
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=create&version=v1 click to debug }
|
|
579
564
|
*/
|
|
580
|
-
|
|
565
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
581
566
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
582
567
|
return httpInstance
|
|
583
568
|
.request({
|
|
584
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
585
|
-
method: "
|
|
569
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`, path),
|
|
570
|
+
method: "POST",
|
|
586
571
|
data,
|
|
587
572
|
params,
|
|
588
573
|
headers,
|
|
@@ -593,14 +578,14 @@ class Client$1 {
|
|
|
593
578
|
});
|
|
594
579
|
}),
|
|
595
580
|
/**
|
|
596
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
581
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=list&version=v1 click to debug }
|
|
597
582
|
*/
|
|
598
|
-
|
|
583
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
599
584
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
600
585
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
601
586
|
const res = yield httpInstance
|
|
602
587
|
.request({
|
|
603
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
588
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`, path),
|
|
604
589
|
method: "GET",
|
|
605
590
|
headers: pickBy(innerPayload.headers, identity),
|
|
606
591
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -644,31 +629,13 @@ class Client$1 {
|
|
|
644
629
|
return Iterable;
|
|
645
630
|
}),
|
|
646
631
|
/**
|
|
647
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
648
|
-
*/
|
|
649
|
-
underauditlist: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
650
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
651
|
-
return httpInstance
|
|
652
|
-
.request({
|
|
653
|
-
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/underauditlist`, path),
|
|
654
|
-
method: "GET",
|
|
655
|
-
data,
|
|
656
|
-
params,
|
|
657
|
-
headers,
|
|
658
|
-
})
|
|
659
|
-
.catch((e) => {
|
|
660
|
-
this.logger.error(formatErrors(e));
|
|
661
|
-
throw e;
|
|
662
|
-
});
|
|
663
|
-
}),
|
|
664
|
-
/**
|
|
665
|
-
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=get&version=v6 click to debug }
|
|
632
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=list&version=v1 click to debug }
|
|
666
633
|
*/
|
|
667
|
-
|
|
634
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
668
635
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
669
636
|
return httpInstance
|
|
670
637
|
.request({
|
|
671
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
638
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`, path),
|
|
672
639
|
method: "GET",
|
|
673
640
|
data,
|
|
674
641
|
params,
|
|
@@ -679,37 +646,15 @@ class Client$1 {
|
|
|
679
646
|
throw e;
|
|
680
647
|
});
|
|
681
648
|
}),
|
|
682
|
-
},
|
|
683
|
-
applicationAppUsage: {
|
|
684
|
-
/**
|
|
685
|
-
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
686
|
-
*/
|
|
687
|
-
overview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
688
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
689
|
-
return httpInstance
|
|
690
|
-
.request({
|
|
691
|
-
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`, path),
|
|
692
|
-
method: "POST",
|
|
693
|
-
data,
|
|
694
|
-
params,
|
|
695
|
-
headers,
|
|
696
|
-
})
|
|
697
|
-
.catch((e) => {
|
|
698
|
-
this.logger.error(formatErrors(e));
|
|
699
|
-
throw e;
|
|
700
|
-
});
|
|
701
|
-
}),
|
|
702
|
-
},
|
|
703
|
-
applicationFeedback: {
|
|
704
649
|
/**
|
|
705
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
650
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=update&version=v1 click to debug }
|
|
706
651
|
*/
|
|
707
|
-
|
|
652
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
708
653
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
709
654
|
return httpInstance
|
|
710
655
|
.request({
|
|
711
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
712
|
-
method: "
|
|
656
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`, path),
|
|
657
|
+
method: "PUT",
|
|
713
658
|
data,
|
|
714
659
|
params,
|
|
715
660
|
headers,
|
|
@@ -720,13 +665,13 @@ class Client$1 {
|
|
|
720
665
|
});
|
|
721
666
|
}),
|
|
722
667
|
/**
|
|
723
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
668
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=get&version=v1 click to debug }
|
|
724
669
|
*/
|
|
725
|
-
|
|
670
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
726
671
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
727
672
|
return httpInstance
|
|
728
673
|
.request({
|
|
729
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
674
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`, path),
|
|
730
675
|
method: "GET",
|
|
731
676
|
data,
|
|
732
677
|
params,
|
|
@@ -738,35 +683,15 @@ class Client$1 {
|
|
|
738
683
|
});
|
|
739
684
|
}),
|
|
740
685
|
},
|
|
741
|
-
|
|
742
|
-
this.approval = {
|
|
743
|
-
instance: {
|
|
744
|
-
/**
|
|
745
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=add_sign&version=v4 click to debug }
|
|
746
|
-
*/
|
|
747
|
-
addSign: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
748
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
749
|
-
return httpInstance
|
|
750
|
-
.request({
|
|
751
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/add_sign`, path),
|
|
752
|
-
method: "POST",
|
|
753
|
-
data,
|
|
754
|
-
params,
|
|
755
|
-
headers,
|
|
756
|
-
})
|
|
757
|
-
.catch((e) => {
|
|
758
|
-
this.logger.error(formatErrors(e));
|
|
759
|
-
throw e;
|
|
760
|
-
});
|
|
761
|
-
}),
|
|
686
|
+
badge: {
|
|
762
687
|
/**
|
|
763
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
688
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=create&version=v1 click to debug }
|
|
764
689
|
*/
|
|
765
|
-
|
|
690
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
766
691
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
767
692
|
return httpInstance
|
|
768
693
|
.request({
|
|
769
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
694
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
770
695
|
method: "POST",
|
|
771
696
|
data,
|
|
772
697
|
params,
|
|
@@ -778,14 +703,14 @@ class Client$1 {
|
|
|
778
703
|
});
|
|
779
704
|
}),
|
|
780
705
|
/**
|
|
781
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
706
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=get&version=v1 click to debug }
|
|
782
707
|
*/
|
|
783
|
-
|
|
708
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
784
709
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
785
710
|
return httpInstance
|
|
786
711
|
.request({
|
|
787
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
788
|
-
method: "
|
|
712
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
|
|
713
|
+
method: "GET",
|
|
789
714
|
data,
|
|
790
715
|
params,
|
|
791
716
|
headers,
|
|
@@ -796,14 +721,14 @@ class Client$1 {
|
|
|
796
721
|
});
|
|
797
722
|
}),
|
|
798
723
|
/**
|
|
799
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
724
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=update&version=v1 click to debug }
|
|
800
725
|
*/
|
|
801
|
-
|
|
726
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
802
727
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
803
728
|
return httpInstance
|
|
804
729
|
.request({
|
|
805
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
806
|
-
method: "
|
|
730
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
|
|
731
|
+
method: "PUT",
|
|
807
732
|
data,
|
|
808
733
|
params,
|
|
809
734
|
headers,
|
|
@@ -814,14 +739,14 @@ class Client$1 {
|
|
|
814
739
|
});
|
|
815
740
|
}),
|
|
816
741
|
/**
|
|
817
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
742
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=list&version=v1 click to debug }
|
|
818
743
|
*/
|
|
819
744
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
820
745
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
821
746
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
822
747
|
const res = yield httpInstance
|
|
823
748
|
.request({
|
|
824
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
749
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
825
750
|
method: "GET",
|
|
826
751
|
headers: pickBy(innerPayload.headers, identity),
|
|
827
752
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -865,13 +790,13 @@ class Client$1 {
|
|
|
865
790
|
return Iterable;
|
|
866
791
|
}),
|
|
867
792
|
/**
|
|
868
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
793
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=list&version=v1 click to debug }
|
|
869
794
|
*/
|
|
870
795
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
871
796
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
872
797
|
return httpInstance
|
|
873
798
|
.request({
|
|
874
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
799
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
875
800
|
method: "GET",
|
|
876
801
|
data,
|
|
877
802
|
params,
|
|
@@ -882,15 +807,39 @@ class Client$1 {
|
|
|
882
807
|
throw e;
|
|
883
808
|
});
|
|
884
809
|
}),
|
|
810
|
+
},
|
|
811
|
+
adminUserStat: {
|
|
885
812
|
/**
|
|
886
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
813
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=admin_user_stat&apiName=list&version=v1 click to debug }
|
|
887
814
|
*/
|
|
888
|
-
|
|
815
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
889
816
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
890
817
|
return httpInstance
|
|
891
818
|
.request({
|
|
892
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
893
|
-
method: "
|
|
819
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/admin_user_stats`, path),
|
|
820
|
+
method: "GET",
|
|
821
|
+
data,
|
|
822
|
+
params,
|
|
823
|
+
headers,
|
|
824
|
+
})
|
|
825
|
+
.catch((e) => {
|
|
826
|
+
this.logger.error(formatErrors(e));
|
|
827
|
+
throw e;
|
|
828
|
+
});
|
|
829
|
+
}),
|
|
830
|
+
},
|
|
831
|
+
};
|
|
832
|
+
this.application = {
|
|
833
|
+
applicationAppVersion: {
|
|
834
|
+
/**
|
|
835
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_version&apiName=patch&version=v6 click to debug }
|
|
836
|
+
*/
|
|
837
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
839
|
+
return httpInstance
|
|
840
|
+
.request({
|
|
841
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`, path),
|
|
842
|
+
method: "PATCH",
|
|
894
843
|
data,
|
|
895
844
|
params,
|
|
896
845
|
headers,
|
|
@@ -901,13 +850,13 @@ class Client$1 {
|
|
|
901
850
|
});
|
|
902
851
|
}),
|
|
903
852
|
/**
|
|
904
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
853
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_version&apiName=get&version=v6 click to debug }
|
|
905
854
|
*/
|
|
906
855
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
907
856
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
908
857
|
return httpInstance
|
|
909
858
|
.request({
|
|
910
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
859
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`, path),
|
|
911
860
|
method: "GET",
|
|
912
861
|
data,
|
|
913
862
|
params,
|
|
@@ -918,15 +867,17 @@ class Client$1 {
|
|
|
918
867
|
throw e;
|
|
919
868
|
});
|
|
920
869
|
}),
|
|
870
|
+
},
|
|
871
|
+
application: {
|
|
921
872
|
/**
|
|
922
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
873
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=patch&version=v6 click to debug }
|
|
923
874
|
*/
|
|
924
|
-
|
|
875
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
925
876
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
926
877
|
return httpInstance
|
|
927
878
|
.request({
|
|
928
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
929
|
-
method: "
|
|
879
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id`, path),
|
|
880
|
+
method: "PATCH",
|
|
930
881
|
data,
|
|
931
882
|
params,
|
|
932
883
|
headers,
|
|
@@ -937,15 +888,15 @@ class Client$1 {
|
|
|
937
888
|
});
|
|
938
889
|
}),
|
|
939
890
|
/**
|
|
940
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
891
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=underauditlist&version=v6 click to debug }
|
|
941
892
|
*/
|
|
942
|
-
|
|
893
|
+
underauditlistWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
943
894
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
944
895
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
945
896
|
const res = yield httpInstance
|
|
946
897
|
.request({
|
|
947
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
948
|
-
method: "
|
|
898
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/underauditlist`, path),
|
|
899
|
+
method: "GET",
|
|
949
900
|
headers: pickBy(innerPayload.headers, identity),
|
|
950
901
|
params: pickBy(innerPayload.params, identity),
|
|
951
902
|
})
|
|
@@ -988,14 +939,14 @@ class Client$1 {
|
|
|
988
939
|
return Iterable;
|
|
989
940
|
}),
|
|
990
941
|
/**
|
|
991
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
942
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=underauditlist&version=v6 click to debug }
|
|
992
943
|
*/
|
|
993
|
-
|
|
944
|
+
underauditlist: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
994
945
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
995
946
|
return httpInstance
|
|
996
947
|
.request({
|
|
997
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
998
|
-
method: "
|
|
948
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/underauditlist`, path),
|
|
949
|
+
method: "GET",
|
|
999
950
|
data,
|
|
1000
951
|
params,
|
|
1001
952
|
headers,
|
|
@@ -1006,14 +957,14 @@ class Client$1 {
|
|
|
1006
957
|
});
|
|
1007
958
|
}),
|
|
1008
959
|
/**
|
|
1009
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
960
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=get&version=v6 click to debug }
|
|
1010
961
|
*/
|
|
1011
|
-
|
|
962
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1012
963
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1013
964
|
return httpInstance
|
|
1014
965
|
.request({
|
|
1015
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
1016
|
-
method: "
|
|
966
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id`, path),
|
|
967
|
+
method: "GET",
|
|
1017
968
|
data,
|
|
1018
969
|
params,
|
|
1019
970
|
headers,
|
|
@@ -1024,35 +975,149 @@ class Client$1 {
|
|
|
1024
975
|
});
|
|
1025
976
|
}),
|
|
1026
977
|
},
|
|
1027
|
-
|
|
978
|
+
applicationAppUsage: {
|
|
1028
979
|
/**
|
|
1029
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
980
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
1030
981
|
*/
|
|
1031
|
-
|
|
982
|
+
overview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1032
983
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
return res;
|
|
984
|
+
return httpInstance
|
|
985
|
+
.request({
|
|
986
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`, path),
|
|
987
|
+
method: "POST",
|
|
988
|
+
data,
|
|
989
|
+
params,
|
|
990
|
+
headers,
|
|
991
|
+
})
|
|
992
|
+
.catch((e) => {
|
|
993
|
+
this.logger.error(formatErrors(e));
|
|
994
|
+
throw e;
|
|
1045
995
|
});
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
996
|
+
}),
|
|
997
|
+
},
|
|
998
|
+
applicationFeedback: {
|
|
999
|
+
/**
|
|
1000
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.feedback&apiName=patch&version=v6 click to debug }
|
|
1001
|
+
*/
|
|
1002
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1003
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1004
|
+
return httpInstance
|
|
1005
|
+
.request({
|
|
1006
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`, path),
|
|
1007
|
+
method: "PATCH",
|
|
1008
|
+
data,
|
|
1009
|
+
params,
|
|
1010
|
+
headers,
|
|
1011
|
+
})
|
|
1012
|
+
.catch((e) => {
|
|
1013
|
+
this.logger.error(formatErrors(e));
|
|
1014
|
+
throw e;
|
|
1015
|
+
});
|
|
1016
|
+
}),
|
|
1017
|
+
/**
|
|
1018
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.feedback&apiName=list&version=v6 click to debug }
|
|
1019
|
+
*/
|
|
1020
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1022
|
+
return httpInstance
|
|
1023
|
+
.request({
|
|
1024
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`, path),
|
|
1025
|
+
method: "GET",
|
|
1026
|
+
data,
|
|
1027
|
+
params,
|
|
1028
|
+
headers,
|
|
1029
|
+
})
|
|
1030
|
+
.catch((e) => {
|
|
1031
|
+
this.logger.error(formatErrors(e));
|
|
1032
|
+
throw e;
|
|
1033
|
+
});
|
|
1034
|
+
}),
|
|
1035
|
+
},
|
|
1036
|
+
};
|
|
1037
|
+
this.approval = {
|
|
1038
|
+
instance: {
|
|
1039
|
+
/**
|
|
1040
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=add_sign&version=v4 click to debug }
|
|
1041
|
+
*/
|
|
1042
|
+
addSign: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1043
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1044
|
+
return httpInstance
|
|
1045
|
+
.request({
|
|
1046
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/add_sign`, path),
|
|
1047
|
+
method: "POST",
|
|
1048
|
+
data,
|
|
1049
|
+
params,
|
|
1050
|
+
headers,
|
|
1051
|
+
})
|
|
1052
|
+
.catch((e) => {
|
|
1053
|
+
this.logger.error(formatErrors(e));
|
|
1054
|
+
throw e;
|
|
1055
|
+
});
|
|
1056
|
+
}),
|
|
1057
|
+
/**
|
|
1058
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=preview&version=v4 click to debug }
|
|
1059
|
+
*/
|
|
1060
|
+
preview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1061
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1062
|
+
return httpInstance
|
|
1063
|
+
.request({
|
|
1064
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/preview`, path),
|
|
1065
|
+
method: "POST",
|
|
1066
|
+
data,
|
|
1067
|
+
params,
|
|
1068
|
+
headers,
|
|
1069
|
+
})
|
|
1070
|
+
.catch((e) => {
|
|
1071
|
+
this.logger.error(formatErrors(e));
|
|
1072
|
+
throw e;
|
|
1073
|
+
});
|
|
1074
|
+
}),
|
|
1075
|
+
/**
|
|
1076
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=cc&version=v4 click to debug }
|
|
1077
|
+
*/
|
|
1078
|
+
cc: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1079
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1080
|
+
return httpInstance
|
|
1081
|
+
.request({
|
|
1082
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/cc`, path),
|
|
1083
|
+
method: "POST",
|
|
1084
|
+
data,
|
|
1085
|
+
params,
|
|
1086
|
+
headers,
|
|
1087
|
+
})
|
|
1088
|
+
.catch((e) => {
|
|
1089
|
+
this.logger.error(formatErrors(e));
|
|
1090
|
+
throw e;
|
|
1091
|
+
});
|
|
1092
|
+
}),
|
|
1093
|
+
/**
|
|
1094
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=list&version=v4 click to debug }
|
|
1095
|
+
*/
|
|
1096
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1097
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1098
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1099
|
+
const res = yield httpInstance
|
|
1100
|
+
.request({
|
|
1101
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances`, path),
|
|
1102
|
+
method: "GET",
|
|
1103
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
1104
|
+
params: pickBy(innerPayload.params, identity),
|
|
1105
|
+
})
|
|
1106
|
+
.catch((e) => {
|
|
1107
|
+
this.logger.error(formatErrors(e));
|
|
1108
|
+
});
|
|
1109
|
+
return res;
|
|
1110
|
+
});
|
|
1111
|
+
const Iterable = {
|
|
1112
|
+
[Symbol.asyncIterator]() {
|
|
1113
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1114
|
+
let hasMore = true;
|
|
1115
|
+
let pageToken;
|
|
1116
|
+
while (hasMore) {
|
|
1117
|
+
try {
|
|
1118
|
+
const res = yield __await(sendRequest({
|
|
1119
|
+
headers,
|
|
1120
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1056
1121
|
data,
|
|
1057
1122
|
}));
|
|
1058
1123
|
const _b = get(res, "data") || {}, {
|
|
@@ -1077,13 +1142,13 @@ class Client$1 {
|
|
|
1077
1142
|
return Iterable;
|
|
1078
1143
|
}),
|
|
1079
1144
|
/**
|
|
1080
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=
|
|
1145
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=list&version=v4 click to debug }
|
|
1081
1146
|
*/
|
|
1082
|
-
|
|
1147
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1083
1148
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1084
1149
|
return httpInstance
|
|
1085
1150
|
.request({
|
|
1086
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/
|
|
1151
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances`, path),
|
|
1087
1152
|
method: "GET",
|
|
1088
1153
|
data,
|
|
1089
1154
|
params,
|
|
@@ -1095,13 +1160,13 @@ class Client$1 {
|
|
|
1095
1160
|
});
|
|
1096
1161
|
}),
|
|
1097
1162
|
/**
|
|
1098
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=
|
|
1163
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=cancel&version=v4 click to debug }
|
|
1099
1164
|
*/
|
|
1100
|
-
|
|
1165
|
+
cancel: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1101
1166
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1102
1167
|
return httpInstance
|
|
1103
1168
|
.request({
|
|
1104
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/
|
|
1169
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/cancel`, path),
|
|
1105
1170
|
method: "POST",
|
|
1106
1171
|
data,
|
|
1107
1172
|
params,
|
|
@@ -1113,13 +1178,136 @@ class Client$1 {
|
|
|
1113
1178
|
});
|
|
1114
1179
|
}),
|
|
1115
1180
|
/**
|
|
1116
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=
|
|
1181
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=get&version=v4 click to debug }
|
|
1117
1182
|
*/
|
|
1118
|
-
|
|
1183
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1119
1184
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1120
1185
|
return httpInstance
|
|
1121
1186
|
.request({
|
|
1122
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/
|
|
1187
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/:instance_id`, path),
|
|
1188
|
+
method: "GET",
|
|
1189
|
+
data,
|
|
1190
|
+
params,
|
|
1191
|
+
headers,
|
|
1192
|
+
})
|
|
1193
|
+
.catch((e) => {
|
|
1194
|
+
this.logger.error(formatErrors(e));
|
|
1195
|
+
throw e;
|
|
1196
|
+
});
|
|
1197
|
+
}),
|
|
1198
|
+
/**
|
|
1199
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=specified_rollback&version=v4 click to debug }
|
|
1200
|
+
*/
|
|
1201
|
+
specifiedRollback: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1202
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1203
|
+
return httpInstance
|
|
1204
|
+
.request({
|
|
1205
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`, path),
|
|
1206
|
+
method: "POST",
|
|
1207
|
+
data,
|
|
1208
|
+
params,
|
|
1209
|
+
headers,
|
|
1210
|
+
})
|
|
1211
|
+
.catch((e) => {
|
|
1212
|
+
this.logger.error(formatErrors(e));
|
|
1213
|
+
throw e;
|
|
1214
|
+
});
|
|
1215
|
+
}),
|
|
1216
|
+
/**
|
|
1217
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=query&version=v4 click to debug }
|
|
1218
|
+
*/
|
|
1219
|
+
queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1220
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1221
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1222
|
+
const res = yield httpInstance
|
|
1223
|
+
.request({
|
|
1224
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/query`, path),
|
|
1225
|
+
method: "POST",
|
|
1226
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
1227
|
+
params: pickBy(innerPayload.params, identity),
|
|
1228
|
+
})
|
|
1229
|
+
.catch((e) => {
|
|
1230
|
+
this.logger.error(formatErrors(e));
|
|
1231
|
+
});
|
|
1232
|
+
return res;
|
|
1233
|
+
});
|
|
1234
|
+
const Iterable = {
|
|
1235
|
+
[Symbol.asyncIterator]() {
|
|
1236
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1237
|
+
let hasMore = true;
|
|
1238
|
+
let pageToken;
|
|
1239
|
+
while (hasMore) {
|
|
1240
|
+
try {
|
|
1241
|
+
const res = yield __await(sendRequest({
|
|
1242
|
+
headers,
|
|
1243
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1244
|
+
data,
|
|
1245
|
+
}));
|
|
1246
|
+
const _b = get(res, "data") || {}, {
|
|
1247
|
+
// @ts-ignore
|
|
1248
|
+
has_more,
|
|
1249
|
+
// @ts-ignore
|
|
1250
|
+
page_token,
|
|
1251
|
+
// @ts-ignore
|
|
1252
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
1253
|
+
yield yield __await(rest);
|
|
1254
|
+
hasMore = Boolean(has_more);
|
|
1255
|
+
pageToken = page_token || next_page_token;
|
|
1256
|
+
}
|
|
1257
|
+
catch (e) {
|
|
1258
|
+
yield yield __await(null);
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
},
|
|
1264
|
+
};
|
|
1265
|
+
return Iterable;
|
|
1266
|
+
}),
|
|
1267
|
+
/**
|
|
1268
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=query&version=v4 click to debug }
|
|
1269
|
+
*/
|
|
1270
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1271
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1272
|
+
return httpInstance
|
|
1273
|
+
.request({
|
|
1274
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/query`, path),
|
|
1275
|
+
method: "POST",
|
|
1276
|
+
data,
|
|
1277
|
+
params,
|
|
1278
|
+
headers,
|
|
1279
|
+
})
|
|
1280
|
+
.catch((e) => {
|
|
1281
|
+
this.logger.error(formatErrors(e));
|
|
1282
|
+
throw e;
|
|
1283
|
+
});
|
|
1284
|
+
}),
|
|
1285
|
+
/**
|
|
1286
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=search_cc&version=v4 click to debug }
|
|
1287
|
+
*/
|
|
1288
|
+
searchCc: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1289
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1290
|
+
return httpInstance
|
|
1291
|
+
.request({
|
|
1292
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/search_cc`, path),
|
|
1293
|
+
method: "POST",
|
|
1294
|
+
data,
|
|
1295
|
+
params,
|
|
1296
|
+
headers,
|
|
1297
|
+
})
|
|
1298
|
+
.catch((e) => {
|
|
1299
|
+
this.logger.error(formatErrors(e));
|
|
1300
|
+
throw e;
|
|
1301
|
+
});
|
|
1302
|
+
}),
|
|
1303
|
+
/**
|
|
1304
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=create&version=v4 click to debug }
|
|
1305
|
+
*/
|
|
1306
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1307
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1308
|
+
return httpInstance
|
|
1309
|
+
.request({
|
|
1310
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances`, path),
|
|
1123
1311
|
method: "POST",
|
|
1124
1312
|
data,
|
|
1125
1313
|
params,
|
|
@@ -1130,6 +1318,77 @@ class Client$1 {
|
|
|
1130
1318
|
throw e;
|
|
1131
1319
|
});
|
|
1132
1320
|
}),
|
|
1321
|
+
},
|
|
1322
|
+
task: {
|
|
1323
|
+
/**
|
|
1324
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=query&version=v4 click to debug }
|
|
1325
|
+
*/
|
|
1326
|
+
queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1328
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1329
|
+
const res = yield httpInstance
|
|
1330
|
+
.request({
|
|
1331
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/query`, path),
|
|
1332
|
+
method: "GET",
|
|
1333
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
1334
|
+
params: pickBy(innerPayload.params, identity),
|
|
1335
|
+
})
|
|
1336
|
+
.catch((e) => {
|
|
1337
|
+
this.logger.error(formatErrors(e));
|
|
1338
|
+
});
|
|
1339
|
+
return res;
|
|
1340
|
+
});
|
|
1341
|
+
const Iterable = {
|
|
1342
|
+
[Symbol.asyncIterator]() {
|
|
1343
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1344
|
+
let hasMore = true;
|
|
1345
|
+
let pageToken;
|
|
1346
|
+
while (hasMore) {
|
|
1347
|
+
try {
|
|
1348
|
+
const res = yield __await(sendRequest({
|
|
1349
|
+
headers,
|
|
1350
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1351
|
+
data,
|
|
1352
|
+
}));
|
|
1353
|
+
const _b = get(res, "data") || {}, {
|
|
1354
|
+
// @ts-ignore
|
|
1355
|
+
has_more,
|
|
1356
|
+
// @ts-ignore
|
|
1357
|
+
page_token,
|
|
1358
|
+
// @ts-ignore
|
|
1359
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
1360
|
+
yield yield __await(rest);
|
|
1361
|
+
hasMore = Boolean(has_more);
|
|
1362
|
+
pageToken = page_token || next_page_token;
|
|
1363
|
+
}
|
|
1364
|
+
catch (e) {
|
|
1365
|
+
yield yield __await(null);
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
},
|
|
1371
|
+
};
|
|
1372
|
+
return Iterable;
|
|
1373
|
+
}),
|
|
1374
|
+
/**
|
|
1375
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=query&version=v4 click to debug }
|
|
1376
|
+
*/
|
|
1377
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1378
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1379
|
+
return httpInstance
|
|
1380
|
+
.request({
|
|
1381
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/query`, path),
|
|
1382
|
+
method: "GET",
|
|
1383
|
+
data,
|
|
1384
|
+
params,
|
|
1385
|
+
headers,
|
|
1386
|
+
})
|
|
1387
|
+
.catch((e) => {
|
|
1388
|
+
this.logger.error(formatErrors(e));
|
|
1389
|
+
throw e;
|
|
1390
|
+
});
|
|
1391
|
+
}),
|
|
1133
1392
|
/**
|
|
1134
1393
|
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=transfer&version=v4 click to debug }
|
|
1135
1394
|
*/
|
|
@@ -1166,6 +1425,60 @@ class Client$1 {
|
|
|
1166
1425
|
throw e;
|
|
1167
1426
|
});
|
|
1168
1427
|
}),
|
|
1428
|
+
/**
|
|
1429
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=resubmit&version=v4 click to debug }
|
|
1430
|
+
*/
|
|
1431
|
+
resubmit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1432
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1433
|
+
return httpInstance
|
|
1434
|
+
.request({
|
|
1435
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/resubmit`, path),
|
|
1436
|
+
method: "POST",
|
|
1437
|
+
data,
|
|
1438
|
+
params,
|
|
1439
|
+
headers,
|
|
1440
|
+
})
|
|
1441
|
+
.catch((e) => {
|
|
1442
|
+
this.logger.error(formatErrors(e));
|
|
1443
|
+
throw e;
|
|
1444
|
+
});
|
|
1445
|
+
}),
|
|
1446
|
+
/**
|
|
1447
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=reject&version=v4 click to debug }
|
|
1448
|
+
*/
|
|
1449
|
+
reject: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1450
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1451
|
+
return httpInstance
|
|
1452
|
+
.request({
|
|
1453
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/reject`, path),
|
|
1454
|
+
method: "POST",
|
|
1455
|
+
data,
|
|
1456
|
+
params,
|
|
1457
|
+
headers,
|
|
1458
|
+
})
|
|
1459
|
+
.catch((e) => {
|
|
1460
|
+
this.logger.error(formatErrors(e));
|
|
1461
|
+
throw e;
|
|
1462
|
+
});
|
|
1463
|
+
}),
|
|
1464
|
+
/**
|
|
1465
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=approve&version=v4 click to debug }
|
|
1466
|
+
*/
|
|
1467
|
+
approve: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1468
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1469
|
+
return httpInstance
|
|
1470
|
+
.request({
|
|
1471
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/approve`, path),
|
|
1472
|
+
method: "POST",
|
|
1473
|
+
data,
|
|
1474
|
+
params,
|
|
1475
|
+
headers,
|
|
1476
|
+
})
|
|
1477
|
+
.catch((e) => {
|
|
1478
|
+
this.logger.error(formatErrors(e));
|
|
1479
|
+
throw e;
|
|
1480
|
+
});
|
|
1481
|
+
}),
|
|
1169
1482
|
},
|
|
1170
1483
|
approval: {
|
|
1171
1484
|
/**
|
|
@@ -2018,15 +2331,15 @@ class Client$1 {
|
|
|
2018
2331
|
});
|
|
2019
2332
|
}),
|
|
2020
2333
|
},
|
|
2021
|
-
|
|
2334
|
+
userFlow: {
|
|
2022
2335
|
/**
|
|
2023
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2336
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=query&version=v1 click to debug }
|
|
2024
2337
|
*/
|
|
2025
|
-
|
|
2338
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2026
2339
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2027
2340
|
return httpInstance
|
|
2028
2341
|
.request({
|
|
2029
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2342
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/query`, path),
|
|
2030
2343
|
method: "POST",
|
|
2031
2344
|
data,
|
|
2032
2345
|
params,
|
|
@@ -2038,13 +2351,13 @@ class Client$1 {
|
|
|
2038
2351
|
});
|
|
2039
2352
|
}),
|
|
2040
2353
|
/**
|
|
2041
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2354
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=batch_create&version=v1 click to debug }
|
|
2042
2355
|
*/
|
|
2043
|
-
|
|
2356
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2044
2357
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2045
2358
|
return httpInstance
|
|
2046
2359
|
.request({
|
|
2047
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2360
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`, path),
|
|
2048
2361
|
method: "POST",
|
|
2049
2362
|
data,
|
|
2050
2363
|
params,
|
|
@@ -2055,17 +2368,15 @@ class Client$1 {
|
|
|
2055
2368
|
throw e;
|
|
2056
2369
|
});
|
|
2057
2370
|
}),
|
|
2058
|
-
},
|
|
2059
|
-
userFlow: {
|
|
2060
2371
|
/**
|
|
2061
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=
|
|
2372
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=get&version=v1 click to debug }
|
|
2062
2373
|
*/
|
|
2063
|
-
|
|
2374
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2064
2375
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2065
2376
|
return httpInstance
|
|
2066
2377
|
.request({
|
|
2067
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows
|
|
2068
|
-
method: "
|
|
2378
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`, path),
|
|
2379
|
+
method: "GET",
|
|
2069
2380
|
data,
|
|
2070
2381
|
params,
|
|
2071
2382
|
headers,
|
|
@@ -2075,14 +2386,16 @@ class Client$1 {
|
|
|
2075
2386
|
throw e;
|
|
2076
2387
|
});
|
|
2077
2388
|
}),
|
|
2389
|
+
},
|
|
2390
|
+
userTask: {
|
|
2078
2391
|
/**
|
|
2079
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2392
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_task&apiName=query&version=v1 click to debug }
|
|
2080
2393
|
*/
|
|
2081
|
-
|
|
2394
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2082
2395
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2083
2396
|
return httpInstance
|
|
2084
2397
|
.request({
|
|
2085
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2398
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_tasks/query`, path),
|
|
2086
2399
|
method: "POST",
|
|
2087
2400
|
data,
|
|
2088
2401
|
params,
|
|
@@ -2093,15 +2406,17 @@ class Client$1 {
|
|
|
2093
2406
|
throw e;
|
|
2094
2407
|
});
|
|
2095
2408
|
}),
|
|
2409
|
+
},
|
|
2410
|
+
approvalInfo: {
|
|
2096
2411
|
/**
|
|
2097
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2412
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=approval_info&apiName=process&version=v1 click to debug }
|
|
2098
2413
|
*/
|
|
2099
|
-
|
|
2414
|
+
process: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2100
2415
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2101
2416
|
return httpInstance
|
|
2102
2417
|
.request({
|
|
2103
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2104
|
-
method: "
|
|
2418
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/approval_infos/process`, path),
|
|
2419
|
+
method: "POST",
|
|
2105
2420
|
data,
|
|
2106
2421
|
params,
|
|
2107
2422
|
headers,
|
|
@@ -2112,15 +2427,15 @@ class Client$1 {
|
|
|
2112
2427
|
});
|
|
2113
2428
|
}),
|
|
2114
2429
|
},
|
|
2115
|
-
|
|
2430
|
+
userApproval: {
|
|
2116
2431
|
/**
|
|
2117
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2432
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_approval&apiName=query&version=v1 click to debug }
|
|
2118
2433
|
*/
|
|
2119
2434
|
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2120
2435
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2121
2436
|
return httpInstance
|
|
2122
2437
|
.request({
|
|
2123
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2438
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_approvals/query`, path),
|
|
2124
2439
|
method: "POST",
|
|
2125
2440
|
data,
|
|
2126
2441
|
params,
|
|
@@ -2131,16 +2446,14 @@ class Client$1 {
|
|
|
2131
2446
|
throw e;
|
|
2132
2447
|
});
|
|
2133
2448
|
}),
|
|
2134
|
-
},
|
|
2135
|
-
approvalInfo: {
|
|
2136
2449
|
/**
|
|
2137
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2450
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_approval&apiName=create&version=v1 click to debug }
|
|
2138
2451
|
*/
|
|
2139
|
-
|
|
2452
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2140
2453
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2141
2454
|
return httpInstance
|
|
2142
2455
|
.request({
|
|
2143
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2456
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_approvals`, path),
|
|
2144
2457
|
method: "POST",
|
|
2145
2458
|
data,
|
|
2146
2459
|
params,
|
|
@@ -2700,6 +3013,24 @@ class Client$1 {
|
|
|
2700
3013
|
throw e;
|
|
2701
3014
|
});
|
|
2702
3015
|
}),
|
|
3016
|
+
/**
|
|
3017
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.acl&apiName=unsubscription&version=v4 click to debug }
|
|
3018
|
+
*/
|
|
3019
|
+
unsubscription: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3020
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3021
|
+
return httpInstance
|
|
3022
|
+
.request({
|
|
3023
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`, path),
|
|
3024
|
+
method: "POST",
|
|
3025
|
+
data,
|
|
3026
|
+
params,
|
|
3027
|
+
headers,
|
|
3028
|
+
})
|
|
3029
|
+
.catch((e) => {
|
|
3030
|
+
this.logger.error(formatErrors(e));
|
|
3031
|
+
throw e;
|
|
3032
|
+
});
|
|
3033
|
+
}),
|
|
2703
3034
|
},
|
|
2704
3035
|
calendarEventAttendee: {
|
|
2705
3036
|
/**
|
|
@@ -2986,6 +3317,24 @@ class Client$1 {
|
|
|
2986
3317
|
throw e;
|
|
2987
3318
|
});
|
|
2988
3319
|
}),
|
|
3320
|
+
/**
|
|
3321
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=unsubscription&version=v4 click to debug }
|
|
3322
|
+
*/
|
|
3323
|
+
unsubscription: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3324
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3325
|
+
return httpInstance
|
|
3326
|
+
.request({
|
|
3327
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`, path),
|
|
3328
|
+
method: "POST",
|
|
3329
|
+
data,
|
|
3330
|
+
params,
|
|
3331
|
+
headers,
|
|
3332
|
+
})
|
|
3333
|
+
.catch((e) => {
|
|
3334
|
+
this.logger.error(formatErrors(e));
|
|
3335
|
+
throw e;
|
|
3336
|
+
});
|
|
3337
|
+
}),
|
|
2989
3338
|
},
|
|
2990
3339
|
calendar: {
|
|
2991
3340
|
/**
|
|
@@ -3219,6 +3568,24 @@ class Client$1 {
|
|
|
3219
3568
|
throw e;
|
|
3220
3569
|
});
|
|
3221
3570
|
}),
|
|
3571
|
+
/**
|
|
3572
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar&apiName=unsubscription&version=v4 click to debug }
|
|
3573
|
+
*/
|
|
3574
|
+
unsubscription: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3575
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3576
|
+
return httpInstance
|
|
3577
|
+
.request({
|
|
3578
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`, path),
|
|
3579
|
+
method: "POST",
|
|
3580
|
+
data,
|
|
3581
|
+
params,
|
|
3582
|
+
headers,
|
|
3583
|
+
})
|
|
3584
|
+
.catch((e) => {
|
|
3585
|
+
this.logger.error(formatErrors(e));
|
|
3586
|
+
throw e;
|
|
3587
|
+
});
|
|
3588
|
+
}),
|
|
3222
3589
|
},
|
|
3223
3590
|
timeoffEvent: {
|
|
3224
3591
|
/**
|
|
@@ -4390,14 +4757,32 @@ class Client$1 {
|
|
|
4390
4757
|
},
|
|
4391
4758
|
user: {
|
|
4392
4759
|
/**
|
|
4393
|
-
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
|
|
4760
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
|
|
4761
|
+
*/
|
|
4762
|
+
batchGetId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4763
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4764
|
+
return httpInstance
|
|
4765
|
+
.request({
|
|
4766
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/batch_get_id`, path),
|
|
4767
|
+
method: "POST",
|
|
4768
|
+
data,
|
|
4769
|
+
params,
|
|
4770
|
+
headers,
|
|
4771
|
+
})
|
|
4772
|
+
.catch((e) => {
|
|
4773
|
+
this.logger.error(formatErrors(e));
|
|
4774
|
+
throw e;
|
|
4775
|
+
});
|
|
4776
|
+
}),
|
|
4777
|
+
/**
|
|
4778
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=delete&version=v3 click to debug }
|
|
4394
4779
|
*/
|
|
4395
|
-
|
|
4780
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4396
4781
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4397
4782
|
return httpInstance
|
|
4398
4783
|
.request({
|
|
4399
|
-
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users
|
|
4400
|
-
method: "
|
|
4784
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id`, path),
|
|
4785
|
+
method: "DELETE",
|
|
4401
4786
|
data,
|
|
4402
4787
|
params,
|
|
4403
4788
|
headers,
|
|
@@ -4599,24 +4984,6 @@ class Client$1 {
|
|
|
4599
4984
|
throw e;
|
|
4600
4985
|
});
|
|
4601
4986
|
}),
|
|
4602
|
-
/**
|
|
4603
|
-
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=delete&version=v3 click to debug }
|
|
4604
|
-
*/
|
|
4605
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4606
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4607
|
-
return httpInstance
|
|
4608
|
-
.request({
|
|
4609
|
-
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id`, path),
|
|
4610
|
-
method: "DELETE",
|
|
4611
|
-
data,
|
|
4612
|
-
params,
|
|
4613
|
-
headers,
|
|
4614
|
-
})
|
|
4615
|
-
.catch((e) => {
|
|
4616
|
-
this.logger.error(formatErrors(e));
|
|
4617
|
-
throw e;
|
|
4618
|
-
});
|
|
4619
|
-
}),
|
|
4620
4987
|
/**
|
|
4621
4988
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=create&version=v3 click to debug }
|
|
4622
4989
|
*/
|
|
@@ -5317,24 +5684,6 @@ class Client$1 {
|
|
|
5317
5684
|
throw e;
|
|
5318
5685
|
});
|
|
5319
5686
|
}),
|
|
5320
|
-
/**
|
|
5321
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=subscribe&version=v1 click to debug }
|
|
5322
|
-
*/
|
|
5323
|
-
subscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5324
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5325
|
-
return httpInstance
|
|
5326
|
-
.request({
|
|
5327
|
-
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`, path),
|
|
5328
|
-
method: "POST",
|
|
5329
|
-
data,
|
|
5330
|
-
params,
|
|
5331
|
-
headers,
|
|
5332
|
-
})
|
|
5333
|
-
.catch((e) => {
|
|
5334
|
-
this.logger.error(formatErrors(e));
|
|
5335
|
-
throw e;
|
|
5336
|
-
});
|
|
5337
|
-
}),
|
|
5338
5687
|
/**
|
|
5339
5688
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=move&version=v1 click to debug }
|
|
5340
5689
|
*/
|
|
@@ -5532,6 +5881,24 @@ class Client$1 {
|
|
|
5532
5881
|
throw e;
|
|
5533
5882
|
});
|
|
5534
5883
|
}),
|
|
5884
|
+
/**
|
|
5885
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=subscribe&version=v1 click to debug }
|
|
5886
|
+
*/
|
|
5887
|
+
subscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5888
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5889
|
+
return httpInstance
|
|
5890
|
+
.request({
|
|
5891
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`, path),
|
|
5892
|
+
method: "POST",
|
|
5893
|
+
data,
|
|
5894
|
+
params,
|
|
5895
|
+
headers,
|
|
5896
|
+
})
|
|
5897
|
+
.catch((e) => {
|
|
5898
|
+
this.logger.error(formatErrors(e));
|
|
5899
|
+
throw e;
|
|
5900
|
+
});
|
|
5901
|
+
}),
|
|
5535
5902
|
},
|
|
5536
5903
|
exportTask: {
|
|
5537
5904
|
/**
|
|
@@ -7857,14 +8224,14 @@ class Client$1 {
|
|
|
7857
8224
|
});
|
|
7858
8225
|
}),
|
|
7859
8226
|
/**
|
|
7860
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=
|
|
8227
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=patch&version=v1 click to debug }
|
|
7861
8228
|
*/
|
|
7862
|
-
|
|
8229
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7863
8230
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7864
8231
|
return httpInstance
|
|
7865
8232
|
.request({
|
|
7866
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id
|
|
7867
|
-
method: "
|
|
8233
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
|
|
8234
|
+
method: "PATCH",
|
|
7868
8235
|
data,
|
|
7869
8236
|
params,
|
|
7870
8237
|
headers,
|
|
@@ -7875,13 +8242,13 @@ class Client$1 {
|
|
|
7875
8242
|
});
|
|
7876
8243
|
}),
|
|
7877
8244
|
/**
|
|
7878
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=
|
|
8245
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=reply&version=v1 click to debug }
|
|
7879
8246
|
*/
|
|
7880
|
-
|
|
8247
|
+
reply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7881
8248
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7882
8249
|
return httpInstance
|
|
7883
8250
|
.request({
|
|
7884
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages`, path),
|
|
8251
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`, path),
|
|
7885
8252
|
method: "POST",
|
|
7886
8253
|
data,
|
|
7887
8254
|
params,
|
|
@@ -7893,14 +8260,14 @@ class Client$1 {
|
|
|
7893
8260
|
});
|
|
7894
8261
|
}),
|
|
7895
8262
|
/**
|
|
7896
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=
|
|
8263
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=create&version=v1 click to debug }
|
|
7897
8264
|
*/
|
|
7898
|
-
|
|
8265
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7899
8266
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7900
8267
|
return httpInstance
|
|
7901
8268
|
.request({
|
|
7902
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages
|
|
7903
|
-
method: "
|
|
8269
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages`, path),
|
|
8270
|
+
method: "POST",
|
|
7904
8271
|
data,
|
|
7905
8272
|
params,
|
|
7906
8273
|
headers,
|
|
@@ -8722,32 +9089,6 @@ class Client$1 {
|
|
|
8722
9089
|
});
|
|
8723
9090
|
}),
|
|
8724
9091
|
},
|
|
8725
|
-
messageResource: {
|
|
8726
|
-
/**
|
|
8727
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message.resource&apiName=get&version=v1 click to debug }
|
|
8728
|
-
*/
|
|
8729
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8730
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8731
|
-
const res = yield httpInstance
|
|
8732
|
-
.request({
|
|
8733
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`, path),
|
|
8734
|
-
method: "GET",
|
|
8735
|
-
headers,
|
|
8736
|
-
data,
|
|
8737
|
-
params,
|
|
8738
|
-
responseType: "stream",
|
|
8739
|
-
})
|
|
8740
|
-
.catch((e) => {
|
|
8741
|
-
this.logger.error(formatErrors(e));
|
|
8742
|
-
throw e;
|
|
8743
|
-
});
|
|
8744
|
-
return {
|
|
8745
|
-
writeFile: (filePath) => __awaiter(this, void 0, void 0, function* () {
|
|
8746
|
-
yield res.pipe(fs.createWriteStream(filePath));
|
|
8747
|
-
}),
|
|
8748
|
-
};
|
|
8749
|
-
}),
|
|
8750
|
-
},
|
|
8751
9092
|
chatTab: {
|
|
8752
9093
|
/**
|
|
8753
9094
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat.tab&apiName=list_tabs&version=v1 click to debug }
|
|
@@ -8840,6 +9181,32 @@ class Client$1 {
|
|
|
8840
9181
|
});
|
|
8841
9182
|
}),
|
|
8842
9183
|
},
|
|
9184
|
+
messageResource: {
|
|
9185
|
+
/**
|
|
9186
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message.resource&apiName=get&version=v1 click to debug }
|
|
9187
|
+
*/
|
|
9188
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9189
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9190
|
+
const res = yield httpInstance
|
|
9191
|
+
.request({
|
|
9192
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`, path),
|
|
9193
|
+
method: "GET",
|
|
9194
|
+
headers,
|
|
9195
|
+
data,
|
|
9196
|
+
params,
|
|
9197
|
+
responseType: "stream",
|
|
9198
|
+
})
|
|
9199
|
+
.catch((e) => {
|
|
9200
|
+
this.logger.error(formatErrors(e));
|
|
9201
|
+
throw e;
|
|
9202
|
+
});
|
|
9203
|
+
return {
|
|
9204
|
+
writeFile: (filePath) => __awaiter(this, void 0, void 0, function* () {
|
|
9205
|
+
yield res.pipe(fs.createWriteStream(filePath));
|
|
9206
|
+
}),
|
|
9207
|
+
};
|
|
9208
|
+
}),
|
|
9209
|
+
},
|
|
8843
9210
|
};
|
|
8844
9211
|
this.mail = {
|
|
8845
9212
|
publicMailbox: {
|
|
@@ -9507,24 +9874,6 @@ class Client$1 {
|
|
|
9507
9874
|
throw e;
|
|
9508
9875
|
});
|
|
9509
9876
|
}),
|
|
9510
|
-
/**
|
|
9511
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=create&version=v1 click to debug }
|
|
9512
|
-
*/
|
|
9513
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9514
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9515
|
-
return httpInstance
|
|
9516
|
-
.request({
|
|
9517
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`, path),
|
|
9518
|
-
method: "POST",
|
|
9519
|
-
data,
|
|
9520
|
-
params,
|
|
9521
|
-
headers,
|
|
9522
|
-
})
|
|
9523
|
-
.catch((e) => {
|
|
9524
|
-
this.logger.error(formatErrors(e));
|
|
9525
|
-
throw e;
|
|
9526
|
-
});
|
|
9527
|
-
}),
|
|
9528
9877
|
/**
|
|
9529
9878
|
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=get&version=v1 click to debug }
|
|
9530
9879
|
*/
|
|
@@ -9612,6 +9961,24 @@ class Client$1 {
|
|
|
9612
9961
|
throw e;
|
|
9613
9962
|
});
|
|
9614
9963
|
}),
|
|
9964
|
+
/**
|
|
9965
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=create&version=v1 click to debug }
|
|
9966
|
+
*/
|
|
9967
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9968
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9969
|
+
return httpInstance
|
|
9970
|
+
.request({
|
|
9971
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`, path),
|
|
9972
|
+
method: "POST",
|
|
9973
|
+
data,
|
|
9974
|
+
params,
|
|
9975
|
+
headers,
|
|
9976
|
+
})
|
|
9977
|
+
.catch((e) => {
|
|
9978
|
+
this.logger.error(formatErrors(e));
|
|
9979
|
+
throw e;
|
|
9980
|
+
});
|
|
9981
|
+
}),
|
|
9615
9982
|
},
|
|
9616
9983
|
mailgroupAlias: {
|
|
9617
9984
|
/**
|
|
@@ -10773,52 +11140,67 @@ class Client$1 {
|
|
|
10773
11140
|
this.spend = {};
|
|
10774
11141
|
this.sup_project = {};
|
|
10775
11142
|
this.task = {
|
|
10776
|
-
|
|
10777
|
-
/**
|
|
10778
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=delete&version=v1 click to debug }
|
|
10779
|
-
*/
|
|
10780
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10781
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10782
|
-
return httpInstance
|
|
10783
|
-
.request({
|
|
10784
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
10785
|
-
method: "DELETE",
|
|
10786
|
-
data,
|
|
10787
|
-
params,
|
|
10788
|
-
headers,
|
|
10789
|
-
})
|
|
10790
|
-
.catch((e) => {
|
|
10791
|
-
this.logger.error(formatErrors(e));
|
|
10792
|
-
throw e;
|
|
10793
|
-
});
|
|
10794
|
-
}),
|
|
11143
|
+
taskReminder: {
|
|
10795
11144
|
/**
|
|
10796
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11145
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=list&version=v1 click to debug }
|
|
10797
11146
|
*/
|
|
10798
|
-
|
|
11147
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10799
11148
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
11149
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11150
|
+
const res = yield httpInstance
|
|
11151
|
+
.request({
|
|
11152
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`, path),
|
|
11153
|
+
method: "GET",
|
|
11154
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
11155
|
+
params: pickBy(innerPayload.params, identity),
|
|
11156
|
+
})
|
|
11157
|
+
.catch((e) => {
|
|
11158
|
+
this.logger.error(formatErrors(e));
|
|
11159
|
+
});
|
|
11160
|
+
return res;
|
|
10811
11161
|
});
|
|
11162
|
+
const Iterable = {
|
|
11163
|
+
[Symbol.asyncIterator]() {
|
|
11164
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
11165
|
+
let hasMore = true;
|
|
11166
|
+
let pageToken;
|
|
11167
|
+
while (hasMore) {
|
|
11168
|
+
try {
|
|
11169
|
+
const res = yield __await(sendRequest({
|
|
11170
|
+
headers,
|
|
11171
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
11172
|
+
data,
|
|
11173
|
+
}));
|
|
11174
|
+
const _b = get(res, "data") || {}, {
|
|
11175
|
+
// @ts-ignore
|
|
11176
|
+
has_more,
|
|
11177
|
+
// @ts-ignore
|
|
11178
|
+
page_token,
|
|
11179
|
+
// @ts-ignore
|
|
11180
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
11181
|
+
yield yield __await(rest);
|
|
11182
|
+
hasMore = Boolean(has_more);
|
|
11183
|
+
pageToken = page_token || next_page_token;
|
|
11184
|
+
}
|
|
11185
|
+
catch (e) {
|
|
11186
|
+
yield yield __await(null);
|
|
11187
|
+
break;
|
|
11188
|
+
}
|
|
11189
|
+
}
|
|
11190
|
+
});
|
|
11191
|
+
},
|
|
11192
|
+
};
|
|
11193
|
+
return Iterable;
|
|
10812
11194
|
}),
|
|
10813
11195
|
/**
|
|
10814
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11196
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=list&version=v1 click to debug }
|
|
10815
11197
|
*/
|
|
10816
|
-
|
|
11198
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10817
11199
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10818
11200
|
return httpInstance
|
|
10819
11201
|
.request({
|
|
10820
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
10821
|
-
method: "
|
|
11202
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`, path),
|
|
11203
|
+
method: "GET",
|
|
10822
11204
|
data,
|
|
10823
11205
|
params,
|
|
10824
11206
|
headers,
|
|
@@ -10829,13 +11211,13 @@ class Client$1 {
|
|
|
10829
11211
|
});
|
|
10830
11212
|
}),
|
|
10831
11213
|
/**
|
|
10832
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11214
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=create&version=v1 click to debug }
|
|
10833
11215
|
*/
|
|
10834
|
-
|
|
11216
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10835
11217
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10836
11218
|
return httpInstance
|
|
10837
11219
|
.request({
|
|
10838
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11220
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`, path),
|
|
10839
11221
|
method: "POST",
|
|
10840
11222
|
data,
|
|
10841
11223
|
params,
|
|
@@ -10847,14 +11229,14 @@ class Client$1 {
|
|
|
10847
11229
|
});
|
|
10848
11230
|
}),
|
|
10849
11231
|
/**
|
|
10850
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11232
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=delete&version=v1 click to debug }
|
|
10851
11233
|
*/
|
|
10852
|
-
|
|
11234
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10853
11235
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10854
11236
|
return httpInstance
|
|
10855
11237
|
.request({
|
|
10856
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
10857
|
-
method: "
|
|
11238
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`, path),
|
|
11239
|
+
method: "DELETE",
|
|
10858
11240
|
data,
|
|
10859
11241
|
params,
|
|
10860
11242
|
headers,
|
|
@@ -10864,15 +11246,17 @@ class Client$1 {
|
|
|
10864
11246
|
throw e;
|
|
10865
11247
|
});
|
|
10866
11248
|
}),
|
|
11249
|
+
},
|
|
11250
|
+
taskComment: {
|
|
10867
11251
|
/**
|
|
10868
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11252
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=delete&version=v1 click to debug }
|
|
10869
11253
|
*/
|
|
10870
|
-
|
|
11254
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10871
11255
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10872
11256
|
return httpInstance
|
|
10873
11257
|
.request({
|
|
10874
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
10875
|
-
method: "
|
|
11258
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11259
|
+
method: "DELETE",
|
|
10876
11260
|
data,
|
|
10877
11261
|
params,
|
|
10878
11262
|
headers,
|
|
@@ -10883,14 +11267,14 @@ class Client$1 {
|
|
|
10883
11267
|
});
|
|
10884
11268
|
}),
|
|
10885
11269
|
/**
|
|
10886
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11270
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=get&version=v1 click to debug }
|
|
10887
11271
|
*/
|
|
10888
|
-
|
|
11272
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10889
11273
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10890
11274
|
return httpInstance
|
|
10891
11275
|
.request({
|
|
10892
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
10893
|
-
method: "
|
|
11276
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11277
|
+
method: "GET",
|
|
10894
11278
|
data,
|
|
10895
11279
|
params,
|
|
10896
11280
|
headers,
|
|
@@ -10901,14 +11285,14 @@ class Client$1 {
|
|
|
10901
11285
|
});
|
|
10902
11286
|
}),
|
|
10903
11287
|
/**
|
|
10904
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11288
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=list&version=v1 click to debug }
|
|
10905
11289
|
*/
|
|
10906
11290
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10907
11291
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10908
11292
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
10909
11293
|
const res = yield httpInstance
|
|
10910
11294
|
.request({
|
|
10911
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11295
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`, path),
|
|
10912
11296
|
method: "GET",
|
|
10913
11297
|
headers: pickBy(innerPayload.headers, identity),
|
|
10914
11298
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -10952,13 +11336,13 @@ class Client$1 {
|
|
|
10952
11336
|
return Iterable;
|
|
10953
11337
|
}),
|
|
10954
11338
|
/**
|
|
10955
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11339
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=list&version=v1 click to debug }
|
|
10956
11340
|
*/
|
|
10957
11341
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10958
11342
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10959
11343
|
return httpInstance
|
|
10960
11344
|
.request({
|
|
10961
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11345
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`, path),
|
|
10962
11346
|
method: "GET",
|
|
10963
11347
|
data,
|
|
10964
11348
|
params,
|
|
@@ -10970,14 +11354,14 @@ class Client$1 {
|
|
|
10970
11354
|
});
|
|
10971
11355
|
}),
|
|
10972
11356
|
/**
|
|
10973
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11357
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=update&version=v1 click to debug }
|
|
10974
11358
|
*/
|
|
10975
|
-
|
|
11359
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10976
11360
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10977
11361
|
return httpInstance
|
|
10978
11362
|
.request({
|
|
10979
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
10980
|
-
method: "
|
|
11363
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11364
|
+
method: "PUT",
|
|
10981
11365
|
data,
|
|
10982
11366
|
params,
|
|
10983
11367
|
headers,
|
|
@@ -10987,16 +11371,14 @@ class Client$1 {
|
|
|
10987
11371
|
throw e;
|
|
10988
11372
|
});
|
|
10989
11373
|
}),
|
|
10990
|
-
},
|
|
10991
|
-
taskReminder: {
|
|
10992
11374
|
/**
|
|
10993
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11375
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=create&version=v1 click to debug }
|
|
10994
11376
|
*/
|
|
10995
11377
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10996
11378
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10997
11379
|
return httpInstance
|
|
10998
11380
|
.request({
|
|
10999
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11381
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`, path),
|
|
11000
11382
|
method: "POST",
|
|
11001
11383
|
data,
|
|
11002
11384
|
params,
|
|
@@ -11007,15 +11389,17 @@ class Client$1 {
|
|
|
11007
11389
|
throw e;
|
|
11008
11390
|
});
|
|
11009
11391
|
}),
|
|
11392
|
+
},
|
|
11393
|
+
taskCollaborator: {
|
|
11010
11394
|
/**
|
|
11011
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11395
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=list&version=v1 click to debug }
|
|
11012
11396
|
*/
|
|
11013
11397
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11014
11398
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11015
11399
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11016
11400
|
const res = yield httpInstance
|
|
11017
11401
|
.request({
|
|
11018
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11402
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11019
11403
|
method: "GET",
|
|
11020
11404
|
headers: pickBy(innerPayload.headers, identity),
|
|
11021
11405
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -11059,13 +11443,13 @@ class Client$1 {
|
|
|
11059
11443
|
return Iterable;
|
|
11060
11444
|
}),
|
|
11061
11445
|
/**
|
|
11062
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11446
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=list&version=v1 click to debug }
|
|
11063
11447
|
*/
|
|
11064
11448
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11065
11449
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11066
11450
|
return httpInstance
|
|
11067
11451
|
.request({
|
|
11068
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11452
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11069
11453
|
method: "GET",
|
|
11070
11454
|
data,
|
|
11071
11455
|
params,
|
|
@@ -11077,14 +11461,14 @@ class Client$1 {
|
|
|
11077
11461
|
});
|
|
11078
11462
|
}),
|
|
11079
11463
|
/**
|
|
11080
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11464
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=create&version=v1 click to debug }
|
|
11081
11465
|
*/
|
|
11082
|
-
|
|
11466
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11083
11467
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11084
11468
|
return httpInstance
|
|
11085
11469
|
.request({
|
|
11086
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11087
|
-
method: "
|
|
11470
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11471
|
+
method: "POST",
|
|
11088
11472
|
data,
|
|
11089
11473
|
params,
|
|
11090
11474
|
headers,
|
|
@@ -11094,16 +11478,14 @@ class Client$1 {
|
|
|
11094
11478
|
throw e;
|
|
11095
11479
|
});
|
|
11096
11480
|
}),
|
|
11097
|
-
},
|
|
11098
|
-
taskComment: {
|
|
11099
11481
|
/**
|
|
11100
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11482
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=delete&version=v1 click to debug }
|
|
11101
11483
|
*/
|
|
11102
11484
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11103
11485
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11104
11486
|
return httpInstance
|
|
11105
11487
|
.request({
|
|
11106
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11488
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`, path),
|
|
11107
11489
|
method: "DELETE",
|
|
11108
11490
|
data,
|
|
11109
11491
|
params,
|
|
@@ -11114,33 +11496,17 @@ class Client$1 {
|
|
|
11114
11496
|
throw e;
|
|
11115
11497
|
});
|
|
11116
11498
|
}),
|
|
11499
|
+
},
|
|
11500
|
+
taskFollower: {
|
|
11117
11501
|
/**
|
|
11118
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11119
|
-
*/
|
|
11120
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11121
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11122
|
-
return httpInstance
|
|
11123
|
-
.request({
|
|
11124
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11125
|
-
method: "GET",
|
|
11126
|
-
data,
|
|
11127
|
-
params,
|
|
11128
|
-
headers,
|
|
11129
|
-
})
|
|
11130
|
-
.catch((e) => {
|
|
11131
|
-
this.logger.error(formatErrors(e));
|
|
11132
|
-
throw e;
|
|
11133
|
-
});
|
|
11134
|
-
}),
|
|
11135
|
-
/**
|
|
11136
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=list&version=v1 click to debug }
|
|
11502
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=list&version=v1 click to debug }
|
|
11137
11503
|
*/
|
|
11138
11504
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11139
11505
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11140
11506
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11141
11507
|
const res = yield httpInstance
|
|
11142
11508
|
.request({
|
|
11143
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11509
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`, path),
|
|
11144
11510
|
method: "GET",
|
|
11145
11511
|
headers: pickBy(innerPayload.headers, identity),
|
|
11146
11512
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -11184,13 +11550,13 @@ class Client$1 {
|
|
|
11184
11550
|
return Iterable;
|
|
11185
11551
|
}),
|
|
11186
11552
|
/**
|
|
11187
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11553
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=list&version=v1 click to debug }
|
|
11188
11554
|
*/
|
|
11189
11555
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11190
11556
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11191
11557
|
return httpInstance
|
|
11192
11558
|
.request({
|
|
11193
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11559
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`, path),
|
|
11194
11560
|
method: "GET",
|
|
11195
11561
|
data,
|
|
11196
11562
|
params,
|
|
@@ -11202,14 +11568,14 @@ class Client$1 {
|
|
|
11202
11568
|
});
|
|
11203
11569
|
}),
|
|
11204
11570
|
/**
|
|
11205
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11571
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=create&version=v1 click to debug }
|
|
11206
11572
|
*/
|
|
11207
|
-
|
|
11573
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11208
11574
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11209
11575
|
return httpInstance
|
|
11210
11576
|
.request({
|
|
11211
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11212
|
-
method: "
|
|
11577
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`, path),
|
|
11578
|
+
method: "POST",
|
|
11213
11579
|
data,
|
|
11214
11580
|
params,
|
|
11215
11581
|
headers,
|
|
@@ -11220,14 +11586,14 @@ class Client$1 {
|
|
|
11220
11586
|
});
|
|
11221
11587
|
}),
|
|
11222
11588
|
/**
|
|
11223
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11589
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=delete&version=v1 click to debug }
|
|
11224
11590
|
*/
|
|
11225
|
-
|
|
11591
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11226
11592
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11227
11593
|
return httpInstance
|
|
11228
11594
|
.request({
|
|
11229
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11230
|
-
method: "
|
|
11595
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`, path),
|
|
11596
|
+
method: "DELETE",
|
|
11231
11597
|
data,
|
|
11232
11598
|
params,
|
|
11233
11599
|
headers,
|
|
@@ -11238,67 +11604,16 @@ class Client$1 {
|
|
|
11238
11604
|
});
|
|
11239
11605
|
}),
|
|
11240
11606
|
},
|
|
11241
|
-
|
|
11242
|
-
/**
|
|
11243
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=list&version=v1 click to debug }
|
|
11244
|
-
*/
|
|
11245
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11246
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11247
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11248
|
-
const res = yield httpInstance
|
|
11249
|
-
.request({
|
|
11250
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11251
|
-
method: "GET",
|
|
11252
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
11253
|
-
params: pickBy(innerPayload.params, identity),
|
|
11254
|
-
})
|
|
11255
|
-
.catch((e) => {
|
|
11256
|
-
this.logger.error(formatErrors(e));
|
|
11257
|
-
});
|
|
11258
|
-
return res;
|
|
11259
|
-
});
|
|
11260
|
-
const Iterable = {
|
|
11261
|
-
[Symbol.asyncIterator]() {
|
|
11262
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
11263
|
-
let hasMore = true;
|
|
11264
|
-
let pageToken;
|
|
11265
|
-
while (hasMore) {
|
|
11266
|
-
try {
|
|
11267
|
-
const res = yield __await(sendRequest({
|
|
11268
|
-
headers,
|
|
11269
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
11270
|
-
data,
|
|
11271
|
-
}));
|
|
11272
|
-
const _b = get(res, "data") || {}, {
|
|
11273
|
-
// @ts-ignore
|
|
11274
|
-
has_more,
|
|
11275
|
-
// @ts-ignore
|
|
11276
|
-
page_token,
|
|
11277
|
-
// @ts-ignore
|
|
11278
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
11279
|
-
yield yield __await(rest);
|
|
11280
|
-
hasMore = Boolean(has_more);
|
|
11281
|
-
pageToken = page_token || next_page_token;
|
|
11282
|
-
}
|
|
11283
|
-
catch (e) {
|
|
11284
|
-
yield yield __await(null);
|
|
11285
|
-
break;
|
|
11286
|
-
}
|
|
11287
|
-
}
|
|
11288
|
-
});
|
|
11289
|
-
},
|
|
11290
|
-
};
|
|
11291
|
-
return Iterable;
|
|
11292
|
-
}),
|
|
11607
|
+
task: {
|
|
11293
11608
|
/**
|
|
11294
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11609
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=batch_delete_follower&version=v1 click to debug }
|
|
11295
11610
|
*/
|
|
11296
|
-
|
|
11611
|
+
batchDeleteFollower: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11297
11612
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11298
11613
|
return httpInstance
|
|
11299
11614
|
.request({
|
|
11300
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11301
|
-
method: "
|
|
11615
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`, path),
|
|
11616
|
+
method: "POST",
|
|
11302
11617
|
data,
|
|
11303
11618
|
params,
|
|
11304
11619
|
headers,
|
|
@@ -11309,13 +11624,13 @@ class Client$1 {
|
|
|
11309
11624
|
});
|
|
11310
11625
|
}),
|
|
11311
11626
|
/**
|
|
11312
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11627
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=batch_delete_collaborator&version=v1 click to debug }
|
|
11313
11628
|
*/
|
|
11314
|
-
|
|
11629
|
+
batchDeleteCollaborator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11315
11630
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11316
11631
|
return httpInstance
|
|
11317
11632
|
.request({
|
|
11318
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11633
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`, path),
|
|
11319
11634
|
method: "POST",
|
|
11320
11635
|
data,
|
|
11321
11636
|
params,
|
|
@@ -11327,14 +11642,14 @@ class Client$1 {
|
|
|
11327
11642
|
});
|
|
11328
11643
|
}),
|
|
11329
11644
|
/**
|
|
11330
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11645
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=get&version=v1 click to debug }
|
|
11331
11646
|
*/
|
|
11332
|
-
|
|
11647
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11333
11648
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11334
11649
|
return httpInstance
|
|
11335
11650
|
.request({
|
|
11336
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id
|
|
11337
|
-
method: "
|
|
11651
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
11652
|
+
method: "GET",
|
|
11338
11653
|
data,
|
|
11339
11654
|
params,
|
|
11340
11655
|
headers,
|
|
@@ -11344,17 +11659,15 @@ class Client$1 {
|
|
|
11344
11659
|
throw e;
|
|
11345
11660
|
});
|
|
11346
11661
|
}),
|
|
11347
|
-
},
|
|
11348
|
-
taskFollower: {
|
|
11349
11662
|
/**
|
|
11350
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11663
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11351
11664
|
*/
|
|
11352
11665
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11353
11666
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11354
11667
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11355
11668
|
const res = yield httpInstance
|
|
11356
11669
|
.request({
|
|
11357
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks
|
|
11670
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11358
11671
|
method: "GET",
|
|
11359
11672
|
headers: pickBy(innerPayload.headers, identity),
|
|
11360
11673
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -11398,14 +11711,68 @@ class Client$1 {
|
|
|
11398
11711
|
return Iterable;
|
|
11399
11712
|
}),
|
|
11400
11713
|
/**
|
|
11401
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11714
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11715
|
+
*/
|
|
11716
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11717
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11718
|
+
return httpInstance
|
|
11719
|
+
.request({
|
|
11720
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11721
|
+
method: "GET",
|
|
11722
|
+
data,
|
|
11723
|
+
params,
|
|
11724
|
+
headers,
|
|
11725
|
+
})
|
|
11726
|
+
.catch((e) => {
|
|
11727
|
+
this.logger.error(formatErrors(e));
|
|
11728
|
+
throw e;
|
|
11729
|
+
});
|
|
11730
|
+
}),
|
|
11731
|
+
/**
|
|
11732
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=delete&version=v1 click to debug }
|
|
11733
|
+
*/
|
|
11734
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11735
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11736
|
+
return httpInstance
|
|
11737
|
+
.request({
|
|
11738
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
11739
|
+
method: "DELETE",
|
|
11740
|
+
data,
|
|
11741
|
+
params,
|
|
11742
|
+
headers,
|
|
11743
|
+
})
|
|
11744
|
+
.catch((e) => {
|
|
11745
|
+
this.logger.error(formatErrors(e));
|
|
11746
|
+
throw e;
|
|
11747
|
+
});
|
|
11748
|
+
}),
|
|
11749
|
+
/**
|
|
11750
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=complete&version=v1 click to debug }
|
|
11751
|
+
*/
|
|
11752
|
+
complete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11753
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11754
|
+
return httpInstance
|
|
11755
|
+
.request({
|
|
11756
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`, path),
|
|
11757
|
+
method: "POST",
|
|
11758
|
+
data,
|
|
11759
|
+
params,
|
|
11760
|
+
headers,
|
|
11761
|
+
})
|
|
11762
|
+
.catch((e) => {
|
|
11763
|
+
this.logger.error(formatErrors(e));
|
|
11764
|
+
throw e;
|
|
11765
|
+
});
|
|
11766
|
+
}),
|
|
11767
|
+
/**
|
|
11768
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=uncomplete&version=v1 click to debug }
|
|
11402
11769
|
*/
|
|
11403
|
-
|
|
11770
|
+
uncomplete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11404
11771
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11405
11772
|
return httpInstance
|
|
11406
11773
|
.request({
|
|
11407
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11408
|
-
method: "
|
|
11774
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`, path),
|
|
11775
|
+
method: "POST",
|
|
11409
11776
|
data,
|
|
11410
11777
|
params,
|
|
11411
11778
|
headers,
|
|
@@ -11416,14 +11783,14 @@ class Client$1 {
|
|
|
11416
11783
|
});
|
|
11417
11784
|
}),
|
|
11418
11785
|
/**
|
|
11419
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11786
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=patch&version=v1 click to debug }
|
|
11420
11787
|
*/
|
|
11421
|
-
|
|
11788
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11422
11789
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11423
11790
|
return httpInstance
|
|
11424
11791
|
.request({
|
|
11425
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id
|
|
11426
|
-
method: "
|
|
11792
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
11793
|
+
method: "PATCH",
|
|
11427
11794
|
data,
|
|
11428
11795
|
params,
|
|
11429
11796
|
headers,
|
|
@@ -11434,14 +11801,14 @@ class Client$1 {
|
|
|
11434
11801
|
});
|
|
11435
11802
|
}),
|
|
11436
11803
|
/**
|
|
11437
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11804
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=create&version=v1 click to debug }
|
|
11438
11805
|
*/
|
|
11439
|
-
|
|
11806
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11440
11807
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11441
11808
|
return httpInstance
|
|
11442
11809
|
.request({
|
|
11443
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks
|
|
11444
|
-
method: "
|
|
11810
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11811
|
+
method: "POST",
|
|
11445
11812
|
data,
|
|
11446
11813
|
params,
|
|
11447
11814
|
headers,
|
|
@@ -11537,14 +11904,14 @@ class Client$1 {
|
|
|
11537
11904
|
});
|
|
11538
11905
|
}),
|
|
11539
11906
|
/**
|
|
11540
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11907
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=get_active_meeting&version=v1 click to debug }
|
|
11541
11908
|
*/
|
|
11542
|
-
|
|
11909
|
+
getActiveMeeting: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11543
11910
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11544
11911
|
return httpInstance
|
|
11545
11912
|
.request({
|
|
11546
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/
|
|
11547
|
-
method: "
|
|
11913
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`, path),
|
|
11914
|
+
method: "GET",
|
|
11548
11915
|
data,
|
|
11549
11916
|
params,
|
|
11550
11917
|
headers,
|
|
@@ -11555,14 +11922,14 @@ class Client$1 {
|
|
|
11555
11922
|
});
|
|
11556
11923
|
}),
|
|
11557
11924
|
/**
|
|
11558
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11925
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=get&version=v1 click to debug }
|
|
11559
11926
|
*/
|
|
11560
|
-
|
|
11927
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11561
11928
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11562
11929
|
return httpInstance
|
|
11563
11930
|
.request({
|
|
11564
11931
|
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`, path),
|
|
11565
|
-
method: "
|
|
11932
|
+
method: "GET",
|
|
11566
11933
|
data,
|
|
11567
11934
|
params,
|
|
11568
11935
|
headers,
|
|
@@ -11573,14 +11940,14 @@ class Client$1 {
|
|
|
11573
11940
|
});
|
|
11574
11941
|
}),
|
|
11575
11942
|
/**
|
|
11576
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11943
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=update&version=v1 click to debug }
|
|
11577
11944
|
*/
|
|
11578
|
-
|
|
11945
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11579
11946
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11580
11947
|
return httpInstance
|
|
11581
11948
|
.request({
|
|
11582
11949
|
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`, path),
|
|
11583
|
-
method: "
|
|
11950
|
+
method: "PUT",
|
|
11584
11951
|
data,
|
|
11585
11952
|
params,
|
|
11586
11953
|
headers,
|
|
@@ -11591,14 +11958,14 @@ class Client$1 {
|
|
|
11591
11958
|
});
|
|
11592
11959
|
}),
|
|
11593
11960
|
/**
|
|
11594
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11961
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=apply&version=v1 click to debug }
|
|
11595
11962
|
*/
|
|
11596
|
-
|
|
11963
|
+
apply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11597
11964
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11598
11965
|
return httpInstance
|
|
11599
11966
|
.request({
|
|
11600
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves
|
|
11601
|
-
method: "
|
|
11967
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/apply`, path),
|
|
11968
|
+
method: "POST",
|
|
11602
11969
|
data,
|
|
11603
11970
|
params,
|
|
11604
11971
|
headers,
|
|
@@ -11975,24 +12342,6 @@ class Client$1 {
|
|
|
11975
12342
|
throw e;
|
|
11976
12343
|
});
|
|
11977
12344
|
}),
|
|
11978
|
-
/**
|
|
11979
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=resource_reservation_list&version=v1 click to debug }
|
|
11980
|
-
*/
|
|
11981
|
-
resourceReservationList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11982
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11983
|
-
return httpInstance
|
|
11984
|
-
.request({
|
|
11985
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`, path),
|
|
11986
|
-
method: "POST",
|
|
11987
|
-
data,
|
|
11988
|
-
params,
|
|
11989
|
-
headers,
|
|
11990
|
-
})
|
|
11991
|
-
.catch((e) => {
|
|
11992
|
-
this.logger.error(formatErrors(e));
|
|
11993
|
-
throw e;
|
|
11994
|
-
});
|
|
11995
|
-
}),
|
|
11996
12345
|
/**
|
|
11997
12346
|
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=participant_list&version=v1 click to debug }
|
|
11998
12347
|
*/
|
|
@@ -12288,12 +12637,196 @@ class Client$1 {
|
|
|
12288
12637
|
/**
|
|
12289
12638
|
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=list&version=v2 click to debug }
|
|
12290
12639
|
*/
|
|
12291
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12640
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12641
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12642
|
+
return httpInstance
|
|
12643
|
+
.request({
|
|
12644
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`, path),
|
|
12645
|
+
method: "GET",
|
|
12646
|
+
data,
|
|
12647
|
+
params,
|
|
12648
|
+
headers,
|
|
12649
|
+
})
|
|
12650
|
+
.catch((e) => {
|
|
12651
|
+
this.logger.error(formatErrors(e));
|
|
12652
|
+
throw e;
|
|
12653
|
+
});
|
|
12654
|
+
}),
|
|
12655
|
+
/**
|
|
12656
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=create&version=v2 click to debug }
|
|
12657
|
+
*/
|
|
12658
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12659
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12660
|
+
return httpInstance
|
|
12661
|
+
.request({
|
|
12662
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`, path),
|
|
12663
|
+
method: "POST",
|
|
12664
|
+
data,
|
|
12665
|
+
params,
|
|
12666
|
+
headers,
|
|
12667
|
+
})
|
|
12668
|
+
.catch((e) => {
|
|
12669
|
+
this.logger.error(formatErrors(e));
|
|
12670
|
+
throw e;
|
|
12671
|
+
});
|
|
12672
|
+
}),
|
|
12673
|
+
/**
|
|
12674
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=copy&version=v2 click to debug }
|
|
12675
|
+
*/
|
|
12676
|
+
copy: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12677
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12678
|
+
return httpInstance
|
|
12679
|
+
.request({
|
|
12680
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`, path),
|
|
12681
|
+
method: "POST",
|
|
12682
|
+
data,
|
|
12683
|
+
params,
|
|
12684
|
+
headers,
|
|
12685
|
+
})
|
|
12686
|
+
.catch((e) => {
|
|
12687
|
+
this.logger.error(formatErrors(e));
|
|
12688
|
+
throw e;
|
|
12689
|
+
});
|
|
12690
|
+
}),
|
|
12691
|
+
/**
|
|
12692
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=update_title&version=v2 click to debug }
|
|
12693
|
+
*/
|
|
12694
|
+
updateTitle: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12695
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12696
|
+
return httpInstance
|
|
12697
|
+
.request({
|
|
12698
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`, path),
|
|
12699
|
+
method: "POST",
|
|
12700
|
+
data,
|
|
12701
|
+
params,
|
|
12702
|
+
headers,
|
|
12703
|
+
})
|
|
12704
|
+
.catch((e) => {
|
|
12705
|
+
this.logger.error(formatErrors(e));
|
|
12706
|
+
throw e;
|
|
12707
|
+
});
|
|
12708
|
+
}),
|
|
12709
|
+
},
|
|
12710
|
+
task: {
|
|
12711
|
+
/**
|
|
12712
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=task&apiName=get&version=v2 click to debug }
|
|
12713
|
+
*/
|
|
12714
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12715
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12716
|
+
return httpInstance
|
|
12717
|
+
.request({
|
|
12718
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`, path),
|
|
12719
|
+
method: "GET",
|
|
12720
|
+
data,
|
|
12721
|
+
params,
|
|
12722
|
+
headers,
|
|
12723
|
+
})
|
|
12724
|
+
.catch((e) => {
|
|
12725
|
+
this.logger.error(formatErrors(e));
|
|
12726
|
+
throw e;
|
|
12727
|
+
});
|
|
12728
|
+
}),
|
|
12729
|
+
},
|
|
12730
|
+
};
|
|
12731
|
+
this.workplace = {};
|
|
12732
|
+
this.bitable = {
|
|
12733
|
+
appTableField: {
|
|
12734
|
+
/**
|
|
12735
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=list&version=v1 click to debug }
|
|
12736
|
+
*/
|
|
12737
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12738
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12739
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12740
|
+
const res = yield httpInstance
|
|
12741
|
+
.request({
|
|
12742
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`, path),
|
|
12743
|
+
method: "GET",
|
|
12744
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
12745
|
+
params: pickBy(innerPayload.params, identity),
|
|
12746
|
+
})
|
|
12747
|
+
.catch((e) => {
|
|
12748
|
+
this.logger.error(formatErrors(e));
|
|
12749
|
+
});
|
|
12750
|
+
return res;
|
|
12751
|
+
});
|
|
12752
|
+
const Iterable = {
|
|
12753
|
+
[Symbol.asyncIterator]() {
|
|
12754
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12755
|
+
let hasMore = true;
|
|
12756
|
+
let pageToken;
|
|
12757
|
+
while (hasMore) {
|
|
12758
|
+
try {
|
|
12759
|
+
const res = yield __await(sendRequest({
|
|
12760
|
+
headers,
|
|
12761
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12762
|
+
data,
|
|
12763
|
+
}));
|
|
12764
|
+
const _b = get(res, "data") || {}, {
|
|
12765
|
+
// @ts-ignore
|
|
12766
|
+
has_more,
|
|
12767
|
+
// @ts-ignore
|
|
12768
|
+
page_token,
|
|
12769
|
+
// @ts-ignore
|
|
12770
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12771
|
+
yield yield __await(rest);
|
|
12772
|
+
hasMore = Boolean(has_more);
|
|
12773
|
+
pageToken = page_token || next_page_token;
|
|
12774
|
+
}
|
|
12775
|
+
catch (e) {
|
|
12776
|
+
yield yield __await(null);
|
|
12777
|
+
break;
|
|
12778
|
+
}
|
|
12779
|
+
}
|
|
12780
|
+
});
|
|
12781
|
+
},
|
|
12782
|
+
};
|
|
12783
|
+
return Iterable;
|
|
12784
|
+
}),
|
|
12785
|
+
/**
|
|
12786
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=list&version=v1 click to debug }
|
|
12787
|
+
*/
|
|
12788
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12789
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12790
|
+
return httpInstance
|
|
12791
|
+
.request({
|
|
12792
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`, path),
|
|
12793
|
+
method: "GET",
|
|
12794
|
+
data,
|
|
12795
|
+
params,
|
|
12796
|
+
headers,
|
|
12797
|
+
})
|
|
12798
|
+
.catch((e) => {
|
|
12799
|
+
this.logger.error(formatErrors(e));
|
|
12800
|
+
throw e;
|
|
12801
|
+
});
|
|
12802
|
+
}),
|
|
12803
|
+
/**
|
|
12804
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=update&version=v1 click to debug }
|
|
12805
|
+
*/
|
|
12806
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12807
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12808
|
+
return httpInstance
|
|
12809
|
+
.request({
|
|
12810
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`, path),
|
|
12811
|
+
method: "PUT",
|
|
12812
|
+
data,
|
|
12813
|
+
params,
|
|
12814
|
+
headers,
|
|
12815
|
+
})
|
|
12816
|
+
.catch((e) => {
|
|
12817
|
+
this.logger.error(formatErrors(e));
|
|
12818
|
+
throw e;
|
|
12819
|
+
});
|
|
12820
|
+
}),
|
|
12821
|
+
/**
|
|
12822
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=create&version=v1 click to debug }
|
|
12823
|
+
*/
|
|
12824
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12292
12825
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12293
12826
|
return httpInstance
|
|
12294
12827
|
.request({
|
|
12295
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12296
|
-
method: "
|
|
12828
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`, path),
|
|
12829
|
+
method: "POST",
|
|
12297
12830
|
data,
|
|
12298
12831
|
params,
|
|
12299
12832
|
headers,
|
|
@@ -12304,14 +12837,14 @@ class Client$1 {
|
|
|
12304
12837
|
});
|
|
12305
12838
|
}),
|
|
12306
12839
|
/**
|
|
12307
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12840
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=delete&version=v1 click to debug }
|
|
12308
12841
|
*/
|
|
12309
|
-
|
|
12842
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12310
12843
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12311
12844
|
return httpInstance
|
|
12312
12845
|
.request({
|
|
12313
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12314
|
-
method: "
|
|
12846
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`, path),
|
|
12847
|
+
method: "DELETE",
|
|
12315
12848
|
data,
|
|
12316
12849
|
params,
|
|
12317
12850
|
headers,
|
|
@@ -12321,15 +12854,17 @@ class Client$1 {
|
|
|
12321
12854
|
throw e;
|
|
12322
12855
|
});
|
|
12323
12856
|
}),
|
|
12857
|
+
},
|
|
12858
|
+
appTableForm: {
|
|
12324
12859
|
/**
|
|
12325
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12860
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=patch&version=v1 click to debug }
|
|
12326
12861
|
*/
|
|
12327
|
-
|
|
12862
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12328
12863
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12329
12864
|
return httpInstance
|
|
12330
12865
|
.request({
|
|
12331
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12332
|
-
method: "
|
|
12866
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
12867
|
+
method: "PATCH",
|
|
12333
12868
|
data,
|
|
12334
12869
|
params,
|
|
12335
12870
|
headers,
|
|
@@ -12340,14 +12875,14 @@ class Client$1 {
|
|
|
12340
12875
|
});
|
|
12341
12876
|
}),
|
|
12342
12877
|
/**
|
|
12343
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12878
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=get&version=v1 click to debug }
|
|
12344
12879
|
*/
|
|
12345
|
-
|
|
12880
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12346
12881
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12347
12882
|
return httpInstance
|
|
12348
12883
|
.request({
|
|
12349
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12350
|
-
method: "
|
|
12884
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
12885
|
+
method: "GET",
|
|
12351
12886
|
data,
|
|
12352
12887
|
params,
|
|
12353
12888
|
headers,
|
|
@@ -12358,16 +12893,16 @@ class Client$1 {
|
|
|
12358
12893
|
});
|
|
12359
12894
|
}),
|
|
12360
12895
|
},
|
|
12361
|
-
|
|
12896
|
+
app: {
|
|
12362
12897
|
/**
|
|
12363
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12898
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
12364
12899
|
*/
|
|
12365
|
-
|
|
12900
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12366
12901
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12367
12902
|
return httpInstance
|
|
12368
12903
|
.request({
|
|
12369
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12370
|
-
method: "
|
|
12904
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12905
|
+
method: "PUT",
|
|
12371
12906
|
data,
|
|
12372
12907
|
params,
|
|
12373
12908
|
headers,
|
|
@@ -12377,20 +12912,15 @@ class Client$1 {
|
|
|
12377
12912
|
throw e;
|
|
12378
12913
|
});
|
|
12379
12914
|
}),
|
|
12380
|
-
},
|
|
12381
|
-
};
|
|
12382
|
-
this.workplace = {};
|
|
12383
|
-
this.bitable = {
|
|
12384
|
-
appTableField: {
|
|
12385
12915
|
/**
|
|
12386
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app
|
|
12916
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
12387
12917
|
*/
|
|
12388
|
-
|
|
12918
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12389
12919
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12390
12920
|
return httpInstance
|
|
12391
12921
|
.request({
|
|
12392
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token
|
|
12393
|
-
method: "
|
|
12922
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12923
|
+
method: "GET",
|
|
12394
12924
|
data,
|
|
12395
12925
|
params,
|
|
12396
12926
|
headers,
|
|
@@ -12400,15 +12930,17 @@ class Client$1 {
|
|
|
12400
12930
|
throw e;
|
|
12401
12931
|
});
|
|
12402
12932
|
}),
|
|
12933
|
+
},
|
|
12934
|
+
appRole: {
|
|
12403
12935
|
/**
|
|
12404
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12936
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12405
12937
|
*/
|
|
12406
12938
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12407
12939
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12408
12940
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12409
12941
|
const res = yield httpInstance
|
|
12410
12942
|
.request({
|
|
12411
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12943
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12412
12944
|
method: "GET",
|
|
12413
12945
|
headers: pickBy(innerPayload.headers, identity),
|
|
12414
12946
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12452,13 +12984,13 @@ class Client$1 {
|
|
|
12452
12984
|
return Iterable;
|
|
12453
12985
|
}),
|
|
12454
12986
|
/**
|
|
12455
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12987
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12456
12988
|
*/
|
|
12457
12989
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12458
12990
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12459
12991
|
return httpInstance
|
|
12460
12992
|
.request({
|
|
12461
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12993
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12462
12994
|
method: "GET",
|
|
12463
12995
|
data,
|
|
12464
12996
|
params,
|
|
@@ -12470,14 +13002,14 @@ class Client$1 {
|
|
|
12470
13002
|
});
|
|
12471
13003
|
}),
|
|
12472
13004
|
/**
|
|
12473
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13005
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=delete&version=v1 click to debug }
|
|
12474
13006
|
*/
|
|
12475
|
-
|
|
13007
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12476
13008
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12477
13009
|
return httpInstance
|
|
12478
13010
|
.request({
|
|
12479
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12480
|
-
method: "
|
|
13011
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
|
|
13012
|
+
method: "DELETE",
|
|
12481
13013
|
data,
|
|
12482
13014
|
params,
|
|
12483
13015
|
headers,
|
|
@@ -12488,14 +13020,14 @@ class Client$1 {
|
|
|
12488
13020
|
});
|
|
12489
13021
|
}),
|
|
12490
13022
|
/**
|
|
12491
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13023
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=update&version=v1 click to debug }
|
|
12492
13024
|
*/
|
|
12493
|
-
|
|
13025
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12494
13026
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12495
13027
|
return httpInstance
|
|
12496
13028
|
.request({
|
|
12497
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12498
|
-
method: "
|
|
13029
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
|
|
13030
|
+
method: "PUT",
|
|
12499
13031
|
data,
|
|
12500
13032
|
params,
|
|
12501
13033
|
headers,
|
|
@@ -12505,16 +13037,14 @@ class Client$1 {
|
|
|
12505
13037
|
throw e;
|
|
12506
13038
|
});
|
|
12507
13039
|
}),
|
|
12508
|
-
},
|
|
12509
|
-
appTable: {
|
|
12510
13040
|
/**
|
|
12511
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13041
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=create&version=v1 click to debug }
|
|
12512
13042
|
*/
|
|
12513
|
-
|
|
13043
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12514
13044
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12515
13045
|
return httpInstance
|
|
12516
13046
|
.request({
|
|
12517
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13047
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12518
13048
|
method: "POST",
|
|
12519
13049
|
data,
|
|
12520
13050
|
params,
|
|
@@ -12525,14 +13055,16 @@ class Client$1 {
|
|
|
12525
13055
|
throw e;
|
|
12526
13056
|
});
|
|
12527
13057
|
}),
|
|
13058
|
+
},
|
|
13059
|
+
appRoleMember: {
|
|
12528
13060
|
/**
|
|
12529
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13061
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=delete&version=v1 click to debug }
|
|
12530
13062
|
*/
|
|
12531
13063
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12532
13064
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12533
13065
|
return httpInstance
|
|
12534
13066
|
.request({
|
|
12535
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13067
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`, path),
|
|
12536
13068
|
method: "DELETE",
|
|
12537
13069
|
data,
|
|
12538
13070
|
params,
|
|
@@ -12544,14 +13076,14 @@ class Client$1 {
|
|
|
12544
13076
|
});
|
|
12545
13077
|
}),
|
|
12546
13078
|
/**
|
|
12547
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13079
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
|
|
12548
13080
|
*/
|
|
12549
13081
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12550
13082
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12551
13083
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12552
13084
|
const res = yield httpInstance
|
|
12553
13085
|
.request({
|
|
12554
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13086
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12555
13087
|
method: "GET",
|
|
12556
13088
|
headers: pickBy(innerPayload.headers, identity),
|
|
12557
13089
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12595,13 +13127,13 @@ class Client$1 {
|
|
|
12595
13127
|
return Iterable;
|
|
12596
13128
|
}),
|
|
12597
13129
|
/**
|
|
12598
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13130
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
|
|
12599
13131
|
*/
|
|
12600
13132
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12601
13133
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12602
13134
|
return httpInstance
|
|
12603
13135
|
.request({
|
|
12604
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13136
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12605
13137
|
method: "GET",
|
|
12606
13138
|
data,
|
|
12607
13139
|
params,
|
|
@@ -12613,13 +13145,31 @@ class Client$1 {
|
|
|
12613
13145
|
});
|
|
12614
13146
|
}),
|
|
12615
13147
|
/**
|
|
12616
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13148
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=create&version=v1 click to debug }
|
|
13149
|
+
*/
|
|
13150
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13151
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13152
|
+
return httpInstance
|
|
13153
|
+
.request({
|
|
13154
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
13155
|
+
method: "POST",
|
|
13156
|
+
data,
|
|
13157
|
+
params,
|
|
13158
|
+
headers,
|
|
13159
|
+
})
|
|
13160
|
+
.catch((e) => {
|
|
13161
|
+
this.logger.error(formatErrors(e));
|
|
13162
|
+
throw e;
|
|
13163
|
+
});
|
|
13164
|
+
}),
|
|
13165
|
+
/**
|
|
13166
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_create&version=v1 click to debug }
|
|
12617
13167
|
*/
|
|
12618
13168
|
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12619
13169
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12620
13170
|
return httpInstance
|
|
12621
13171
|
.request({
|
|
12622
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13172
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`, path),
|
|
12623
13173
|
method: "POST",
|
|
12624
13174
|
data,
|
|
12625
13175
|
params,
|
|
@@ -12631,13 +13181,13 @@ class Client$1 {
|
|
|
12631
13181
|
});
|
|
12632
13182
|
}),
|
|
12633
13183
|
/**
|
|
12634
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13184
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_delete&version=v1 click to debug }
|
|
12635
13185
|
*/
|
|
12636
|
-
|
|
13186
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12637
13187
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12638
13188
|
return httpInstance
|
|
12639
13189
|
.request({
|
|
12640
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13190
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`, path),
|
|
12641
13191
|
method: "POST",
|
|
12642
13192
|
data,
|
|
12643
13193
|
params,
|
|
@@ -12649,16 +13199,16 @@ class Client$1 {
|
|
|
12649
13199
|
});
|
|
12650
13200
|
}),
|
|
12651
13201
|
},
|
|
12652
|
-
|
|
13202
|
+
appTableRecord: {
|
|
12653
13203
|
/**
|
|
12654
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13204
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
|
|
12655
13205
|
*/
|
|
12656
13206
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12657
13207
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12658
13208
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12659
13209
|
const res = yield httpInstance
|
|
12660
13210
|
.request({
|
|
12661
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13211
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
12662
13212
|
method: "GET",
|
|
12663
13213
|
headers: pickBy(innerPayload.headers, identity),
|
|
12664
13214
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12702,13 +13252,13 @@ class Client$1 {
|
|
|
12702
13252
|
return Iterable;
|
|
12703
13253
|
}),
|
|
12704
13254
|
/**
|
|
12705
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13255
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
|
|
12706
13256
|
*/
|
|
12707
13257
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12708
13258
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12709
13259
|
return httpInstance
|
|
12710
13260
|
.request({
|
|
12711
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13261
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
12712
13262
|
method: "GET",
|
|
12713
13263
|
data,
|
|
12714
13264
|
params,
|
|
@@ -12720,51 +13270,13 @@ class Client$1 {
|
|
|
12720
13270
|
});
|
|
12721
13271
|
}),
|
|
12722
13272
|
/**
|
|
12723
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
12724
|
-
*/
|
|
12725
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12726
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12727
|
-
return httpInstance
|
|
12728
|
-
.request({
|
|
12729
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
|
|
12730
|
-
method: "DELETE",
|
|
12731
|
-
data,
|
|
12732
|
-
params,
|
|
12733
|
-
headers,
|
|
12734
|
-
})
|
|
12735
|
-
.catch((e) => {
|
|
12736
|
-
this.logger.error(formatErrors(e));
|
|
12737
|
-
throw e;
|
|
12738
|
-
});
|
|
12739
|
-
}),
|
|
12740
|
-
/**
|
|
12741
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
|
|
12742
|
-
*/
|
|
12743
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12744
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12745
|
-
return httpInstance
|
|
12746
|
-
.request({
|
|
12747
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
12748
|
-
method: "POST",
|
|
12749
|
-
data,
|
|
12750
|
-
params,
|
|
12751
|
-
headers,
|
|
12752
|
-
})
|
|
12753
|
-
.catch((e) => {
|
|
12754
|
-
this.logger.error(formatErrors(e));
|
|
12755
|
-
throw e;
|
|
12756
|
-
});
|
|
12757
|
-
}),
|
|
12758
|
-
},
|
|
12759
|
-
app: {
|
|
12760
|
-
/**
|
|
12761
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
13273
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
|
|
12762
13274
|
*/
|
|
12763
13275
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12764
13276
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12765
13277
|
return httpInstance
|
|
12766
13278
|
.request({
|
|
12767
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
13279
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
12768
13280
|
method: "GET",
|
|
12769
13281
|
data,
|
|
12770
13282
|
params,
|
|
@@ -12776,13 +13288,13 @@ class Client$1 {
|
|
|
12776
13288
|
});
|
|
12777
13289
|
}),
|
|
12778
13290
|
/**
|
|
12779
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
13291
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
12780
13292
|
*/
|
|
12781
13293
|
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12782
13294
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12783
13295
|
return httpInstance
|
|
12784
13296
|
.request({
|
|
12785
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
13297
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
12786
13298
|
method: "PUT",
|
|
12787
13299
|
data,
|
|
12788
13300
|
params,
|
|
@@ -12793,86 +13305,33 @@ class Client$1 {
|
|
|
12793
13305
|
throw e;
|
|
12794
13306
|
});
|
|
12795
13307
|
}),
|
|
12796
|
-
},
|
|
12797
|
-
appRole: {
|
|
12798
13308
|
/**
|
|
12799
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13309
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_update&version=v1 click to debug }
|
|
12800
13310
|
*/
|
|
12801
|
-
|
|
13311
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12802
13312
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12803
13313
|
return httpInstance
|
|
12804
13314
|
.request({
|
|
12805
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12806
|
-
method: "
|
|
12807
|
-
data,
|
|
12808
|
-
params,
|
|
12809
|
-
headers,
|
|
12810
|
-
})
|
|
12811
|
-
.catch((e) => {
|
|
12812
|
-
this.logger.error(formatErrors(e));
|
|
12813
|
-
throw e;
|
|
12814
|
-
});
|
|
12815
|
-
}),
|
|
12816
|
-
/**
|
|
12817
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12818
|
-
*/
|
|
12819
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12820
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12821
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12822
|
-
const res = yield httpInstance
|
|
12823
|
-
.request({
|
|
12824
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12825
|
-
method: "GET",
|
|
12826
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
12827
|
-
params: pickBy(innerPayload.params, identity),
|
|
12828
|
-
})
|
|
12829
|
-
.catch((e) => {
|
|
12830
|
-
this.logger.error(formatErrors(e));
|
|
12831
|
-
});
|
|
12832
|
-
return res;
|
|
12833
|
-
});
|
|
12834
|
-
const Iterable = {
|
|
12835
|
-
[Symbol.asyncIterator]() {
|
|
12836
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
12837
|
-
let hasMore = true;
|
|
12838
|
-
let pageToken;
|
|
12839
|
-
while (hasMore) {
|
|
12840
|
-
try {
|
|
12841
|
-
const res = yield __await(sendRequest({
|
|
12842
|
-
headers,
|
|
12843
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12844
|
-
data,
|
|
12845
|
-
}));
|
|
12846
|
-
const _b = get(res, "data") || {}, {
|
|
12847
|
-
// @ts-ignore
|
|
12848
|
-
has_more,
|
|
12849
|
-
// @ts-ignore
|
|
12850
|
-
page_token,
|
|
12851
|
-
// @ts-ignore
|
|
12852
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12853
|
-
yield yield __await(rest);
|
|
12854
|
-
hasMore = Boolean(has_more);
|
|
12855
|
-
pageToken = page_token || next_page_token;
|
|
12856
|
-
}
|
|
12857
|
-
catch (e) {
|
|
12858
|
-
yield yield __await(null);
|
|
12859
|
-
break;
|
|
12860
|
-
}
|
|
12861
|
-
}
|
|
12862
|
-
});
|
|
12863
|
-
},
|
|
12864
|
-
};
|
|
12865
|
-
return Iterable;
|
|
13315
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`, path),
|
|
13316
|
+
method: "POST",
|
|
13317
|
+
data,
|
|
13318
|
+
params,
|
|
13319
|
+
headers,
|
|
13320
|
+
})
|
|
13321
|
+
.catch((e) => {
|
|
13322
|
+
this.logger.error(formatErrors(e));
|
|
13323
|
+
throw e;
|
|
13324
|
+
});
|
|
12866
13325
|
}),
|
|
12867
13326
|
/**
|
|
12868
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13327
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
|
|
12869
13328
|
*/
|
|
12870
|
-
|
|
13329
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12871
13330
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12872
13331
|
return httpInstance
|
|
12873
13332
|
.request({
|
|
12874
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12875
|
-
method: "
|
|
13333
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13334
|
+
method: "DELETE",
|
|
12876
13335
|
data,
|
|
12877
13336
|
params,
|
|
12878
13337
|
headers,
|
|
@@ -12883,14 +13342,14 @@ class Client$1 {
|
|
|
12883
13342
|
});
|
|
12884
13343
|
}),
|
|
12885
13344
|
/**
|
|
12886
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13345
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
|
|
12887
13346
|
*/
|
|
12888
|
-
|
|
13347
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12889
13348
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12890
13349
|
return httpInstance
|
|
12891
13350
|
.request({
|
|
12892
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12893
|
-
method: "
|
|
13351
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13352
|
+
method: "POST",
|
|
12894
13353
|
data,
|
|
12895
13354
|
params,
|
|
12896
13355
|
headers,
|
|
@@ -12901,13 +13360,13 @@ class Client$1 {
|
|
|
12901
13360
|
});
|
|
12902
13361
|
}),
|
|
12903
13362
|
/**
|
|
12904
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13363
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
|
|
12905
13364
|
*/
|
|
12906
|
-
|
|
13365
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12907
13366
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12908
13367
|
return httpInstance
|
|
12909
13368
|
.request({
|
|
12910
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13369
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
|
|
12911
13370
|
method: "POST",
|
|
12912
13371
|
data,
|
|
12913
13372
|
params,
|
|
@@ -12918,17 +13377,15 @@ class Client$1 {
|
|
|
12918
13377
|
throw e;
|
|
12919
13378
|
});
|
|
12920
13379
|
}),
|
|
12921
|
-
},
|
|
12922
|
-
appRoleMember: {
|
|
12923
13380
|
/**
|
|
12924
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13381
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
|
|
12925
13382
|
*/
|
|
12926
|
-
|
|
13383
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12927
13384
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12928
13385
|
return httpInstance
|
|
12929
13386
|
.request({
|
|
12930
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12931
|
-
method: "
|
|
13387
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
|
|
13388
|
+
method: "POST",
|
|
12932
13389
|
data,
|
|
12933
13390
|
params,
|
|
12934
13391
|
headers,
|
|
@@ -12938,14 +13395,16 @@ class Client$1 {
|
|
|
12938
13395
|
throw e;
|
|
12939
13396
|
});
|
|
12940
13397
|
}),
|
|
13398
|
+
},
|
|
13399
|
+
appTable: {
|
|
12941
13400
|
/**
|
|
12942
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13401
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_delete&version=v1 click to debug }
|
|
12943
13402
|
*/
|
|
12944
|
-
|
|
13403
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12945
13404
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12946
13405
|
return httpInstance
|
|
12947
13406
|
.request({
|
|
12948
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13407
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`, path),
|
|
12949
13408
|
method: "POST",
|
|
12950
13409
|
data,
|
|
12951
13410
|
params,
|
|
@@ -12957,14 +13416,32 @@ class Client$1 {
|
|
|
12957
13416
|
});
|
|
12958
13417
|
}),
|
|
12959
13418
|
/**
|
|
12960
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13419
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=delete&version=v1 click to debug }
|
|
13420
|
+
*/
|
|
13421
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13422
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13423
|
+
return httpInstance
|
|
13424
|
+
.request({
|
|
13425
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`, path),
|
|
13426
|
+
method: "DELETE",
|
|
13427
|
+
data,
|
|
13428
|
+
params,
|
|
13429
|
+
headers,
|
|
13430
|
+
})
|
|
13431
|
+
.catch((e) => {
|
|
13432
|
+
this.logger.error(formatErrors(e));
|
|
13433
|
+
throw e;
|
|
13434
|
+
});
|
|
13435
|
+
}),
|
|
13436
|
+
/**
|
|
13437
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
|
|
12961
13438
|
*/
|
|
12962
13439
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12963
13440
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12964
13441
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12965
13442
|
const res = yield httpInstance
|
|
12966
13443
|
.request({
|
|
12967
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13444
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
12968
13445
|
method: "GET",
|
|
12969
13446
|
headers: pickBy(innerPayload.headers, identity),
|
|
12970
13447
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -13008,13 +13485,13 @@ class Client$1 {
|
|
|
13008
13485
|
return Iterable;
|
|
13009
13486
|
}),
|
|
13010
13487
|
/**
|
|
13011
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13488
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
|
|
13012
13489
|
*/
|
|
13013
13490
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13014
13491
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13015
13492
|
return httpInstance
|
|
13016
13493
|
.request({
|
|
13017
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13494
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
13018
13495
|
method: "GET",
|
|
13019
13496
|
data,
|
|
13020
13497
|
params,
|
|
@@ -13026,13 +13503,13 @@ class Client$1 {
|
|
|
13026
13503
|
});
|
|
13027
13504
|
}),
|
|
13028
13505
|
/**
|
|
13029
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13506
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_create&version=v1 click to debug }
|
|
13030
13507
|
*/
|
|
13031
13508
|
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13032
13509
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13033
13510
|
return httpInstance
|
|
13034
13511
|
.request({
|
|
13035
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13512
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`, path),
|
|
13036
13513
|
method: "POST",
|
|
13037
13514
|
data,
|
|
13038
13515
|
params,
|
|
@@ -13044,13 +13521,13 @@ class Client$1 {
|
|
|
13044
13521
|
});
|
|
13045
13522
|
}),
|
|
13046
13523
|
/**
|
|
13047
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13524
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=create&version=v1 click to debug }
|
|
13048
13525
|
*/
|
|
13049
|
-
|
|
13526
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13050
13527
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13051
13528
|
return httpInstance
|
|
13052
13529
|
.request({
|
|
13053
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13530
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
13054
13531
|
method: "POST",
|
|
13055
13532
|
data,
|
|
13056
13533
|
params,
|
|
@@ -13062,34 +13539,16 @@ class Client$1 {
|
|
|
13062
13539
|
});
|
|
13063
13540
|
}),
|
|
13064
13541
|
},
|
|
13065
|
-
|
|
13066
|
-
/**
|
|
13067
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
|
|
13068
|
-
*/
|
|
13069
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13070
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13071
|
-
return httpInstance
|
|
13072
|
-
.request({
|
|
13073
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
|
|
13074
|
-
method: "PATCH",
|
|
13075
|
-
data,
|
|
13076
|
-
params,
|
|
13077
|
-
headers,
|
|
13078
|
-
})
|
|
13079
|
-
.catch((e) => {
|
|
13080
|
-
this.logger.error(formatErrors(e));
|
|
13081
|
-
throw e;
|
|
13082
|
-
});
|
|
13083
|
-
}),
|
|
13542
|
+
appTableView: {
|
|
13084
13543
|
/**
|
|
13085
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13544
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
|
|
13086
13545
|
*/
|
|
13087
13546
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13088
13547
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13089
13548
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13090
13549
|
const res = yield httpInstance
|
|
13091
13550
|
.request({
|
|
13092
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13551
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
13093
13552
|
method: "GET",
|
|
13094
13553
|
headers: pickBy(innerPayload.headers, identity),
|
|
13095
13554
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -13133,13 +13592,13 @@ class Client$1 {
|
|
|
13133
13592
|
return Iterable;
|
|
13134
13593
|
}),
|
|
13135
13594
|
/**
|
|
13136
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13595
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
|
|
13137
13596
|
*/
|
|
13138
13597
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13139
13598
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13140
13599
|
return httpInstance
|
|
13141
13600
|
.request({
|
|
13142
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13601
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
13143
13602
|
method: "GET",
|
|
13144
13603
|
data,
|
|
13145
13604
|
params,
|
|
@@ -13150,17 +13609,15 @@ class Client$1 {
|
|
|
13150
13609
|
throw e;
|
|
13151
13610
|
});
|
|
13152
13611
|
}),
|
|
13153
|
-
},
|
|
13154
|
-
appTableForm: {
|
|
13155
13612
|
/**
|
|
13156
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13613
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=delete&version=v1 click to debug }
|
|
13157
13614
|
*/
|
|
13158
|
-
|
|
13615
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13159
13616
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13160
13617
|
return httpInstance
|
|
13161
13618
|
.request({
|
|
13162
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13163
|
-
method: "
|
|
13619
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
|
|
13620
|
+
method: "DELETE",
|
|
13164
13621
|
data,
|
|
13165
13622
|
params,
|
|
13166
13623
|
headers,
|
|
@@ -13171,14 +13628,14 @@ class Client$1 {
|
|
|
13171
13628
|
});
|
|
13172
13629
|
}),
|
|
13173
13630
|
/**
|
|
13174
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13631
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
|
|
13175
13632
|
*/
|
|
13176
|
-
|
|
13633
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13177
13634
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13178
13635
|
return httpInstance
|
|
13179
13636
|
.request({
|
|
13180
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13181
|
-
method: "
|
|
13637
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
13638
|
+
method: "POST",
|
|
13182
13639
|
data,
|
|
13183
13640
|
params,
|
|
13184
13641
|
headers,
|
|
@@ -13189,52 +13646,16 @@ class Client$1 {
|
|
|
13189
13646
|
});
|
|
13190
13647
|
}),
|
|
13191
13648
|
},
|
|
13192
|
-
|
|
13193
|
-
/**
|
|
13194
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
|
|
13195
|
-
*/
|
|
13196
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13197
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13198
|
-
return httpInstance
|
|
13199
|
-
.request({
|
|
13200
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13201
|
-
method: "GET",
|
|
13202
|
-
data,
|
|
13203
|
-
params,
|
|
13204
|
-
headers,
|
|
13205
|
-
})
|
|
13206
|
-
.catch((e) => {
|
|
13207
|
-
this.logger.error(formatErrors(e));
|
|
13208
|
-
throw e;
|
|
13209
|
-
});
|
|
13210
|
-
}),
|
|
13211
|
-
/**
|
|
13212
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
13213
|
-
*/
|
|
13214
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13215
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13216
|
-
return httpInstance
|
|
13217
|
-
.request({
|
|
13218
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13219
|
-
method: "PUT",
|
|
13220
|
-
data,
|
|
13221
|
-
params,
|
|
13222
|
-
headers,
|
|
13223
|
-
})
|
|
13224
|
-
.catch((e) => {
|
|
13225
|
-
this.logger.error(formatErrors(e));
|
|
13226
|
-
throw e;
|
|
13227
|
-
});
|
|
13228
|
-
}),
|
|
13649
|
+
appTableFormField: {
|
|
13229
13650
|
/**
|
|
13230
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13651
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
|
|
13231
13652
|
*/
|
|
13232
|
-
|
|
13653
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13233
13654
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13234
13655
|
return httpInstance
|
|
13235
13656
|
.request({
|
|
13236
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13237
|
-
method: "
|
|
13657
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
|
|
13658
|
+
method: "PATCH",
|
|
13238
13659
|
data,
|
|
13239
13660
|
params,
|
|
13240
13661
|
headers,
|
|
@@ -13245,14 +13666,14 @@ class Client$1 {
|
|
|
13245
13666
|
});
|
|
13246
13667
|
}),
|
|
13247
13668
|
/**
|
|
13248
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13669
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
|
|
13249
13670
|
*/
|
|
13250
13671
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13251
13672
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13252
13673
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13253
13674
|
const res = yield httpInstance
|
|
13254
13675
|
.request({
|
|
13255
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13676
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
|
|
13256
13677
|
method: "GET",
|
|
13257
13678
|
headers: pickBy(innerPayload.headers, identity),
|
|
13258
13679
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -13296,13 +13717,13 @@ class Client$1 {
|
|
|
13296
13717
|
return Iterable;
|
|
13297
13718
|
}),
|
|
13298
13719
|
/**
|
|
13299
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13720
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
|
|
13300
13721
|
*/
|
|
13301
13722
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13302
13723
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13303
13724
|
return httpInstance
|
|
13304
13725
|
.request({
|
|
13305
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13726
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
|
|
13306
13727
|
method: "GET",
|
|
13307
13728
|
data,
|
|
13308
13729
|
params,
|
|
@@ -13313,78 +13734,6 @@ class Client$1 {
|
|
|
13313
13734
|
throw e;
|
|
13314
13735
|
});
|
|
13315
13736
|
}),
|
|
13316
|
-
/**
|
|
13317
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
|
|
13318
|
-
*/
|
|
13319
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13320
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13321
|
-
return httpInstance
|
|
13322
|
-
.request({
|
|
13323
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13324
|
-
method: "DELETE",
|
|
13325
|
-
data,
|
|
13326
|
-
params,
|
|
13327
|
-
headers,
|
|
13328
|
-
})
|
|
13329
|
-
.catch((e) => {
|
|
13330
|
-
this.logger.error(formatErrors(e));
|
|
13331
|
-
throw e;
|
|
13332
|
-
});
|
|
13333
|
-
}),
|
|
13334
|
-
/**
|
|
13335
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
|
|
13336
|
-
*/
|
|
13337
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13338
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13339
|
-
return httpInstance
|
|
13340
|
-
.request({
|
|
13341
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13342
|
-
method: "POST",
|
|
13343
|
-
data,
|
|
13344
|
-
params,
|
|
13345
|
-
headers,
|
|
13346
|
-
})
|
|
13347
|
-
.catch((e) => {
|
|
13348
|
-
this.logger.error(formatErrors(e));
|
|
13349
|
-
throw e;
|
|
13350
|
-
});
|
|
13351
|
-
}),
|
|
13352
|
-
/**
|
|
13353
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
|
|
13354
|
-
*/
|
|
13355
|
-
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13356
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13357
|
-
return httpInstance
|
|
13358
|
-
.request({
|
|
13359
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
|
|
13360
|
-
method: "POST",
|
|
13361
|
-
data,
|
|
13362
|
-
params,
|
|
13363
|
-
headers,
|
|
13364
|
-
})
|
|
13365
|
-
.catch((e) => {
|
|
13366
|
-
this.logger.error(formatErrors(e));
|
|
13367
|
-
throw e;
|
|
13368
|
-
});
|
|
13369
|
-
}),
|
|
13370
|
-
/**
|
|
13371
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
|
|
13372
|
-
*/
|
|
13373
|
-
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13374
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13375
|
-
return httpInstance
|
|
13376
|
-
.request({
|
|
13377
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
|
|
13378
|
-
method: "POST",
|
|
13379
|
-
data,
|
|
13380
|
-
params,
|
|
13381
|
-
headers,
|
|
13382
|
-
})
|
|
13383
|
-
.catch((e) => {
|
|
13384
|
-
this.logger.error(formatErrors(e));
|
|
13385
|
-
throw e;
|
|
13386
|
-
});
|
|
13387
|
-
}),
|
|
13388
13737
|
},
|
|
13389
13738
|
appDashboard: {
|
|
13390
13739
|
/**
|