@larksuiteoapi/node-sdk 1.0.4 → 1.0.7
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 +1220 -870
- package/lib/index.js +1220 -870
- package/package.json +62 -53
- package/types/index.d.ts +2187 -1791
package/lib/index.js
CHANGED
|
@@ -88,6 +88,12 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
const httpInstance = axios__default["default"].create();
|
|
91
|
+
httpInstance.interceptors.request.use((req) => {
|
|
92
|
+
if (req.headers) {
|
|
93
|
+
req.headers['User-Agent'] = 'oapi-node-sdk/1.0.0';
|
|
94
|
+
}
|
|
95
|
+
return req;
|
|
96
|
+
}, undefined, { synchronous: true });
|
|
91
97
|
httpInstance.interceptors.response.use((resp) => resp.data);
|
|
92
98
|
|
|
93
99
|
exports.AppType = void 0;
|
|
@@ -528,56 +534,37 @@ class Client$1 {
|
|
|
528
534
|
});
|
|
529
535
|
}),
|
|
530
536
|
},
|
|
531
|
-
|
|
537
|
+
badgeImage: {
|
|
532
538
|
/**
|
|
533
|
-
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=
|
|
539
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge_image&apiName=create&version=v1 click to debug }
|
|
534
540
|
*/
|
|
535
|
-
|
|
541
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
536
542
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
537
|
-
|
|
543
|
+
const res = yield httpInstance
|
|
538
544
|
.request({
|
|
539
|
-
url: fillApiPath(`${this.domain}/open-apis/admin/v1/
|
|
540
|
-
method: "
|
|
545
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badge_images`, path),
|
|
546
|
+
method: "POST",
|
|
541
547
|
data,
|
|
542
548
|
params,
|
|
543
|
-
headers,
|
|
549
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
544
550
|
})
|
|
545
551
|
.catch((e) => {
|
|
546
552
|
this.logger.error(formatErrors(e));
|
|
547
553
|
throw e;
|
|
548
554
|
});
|
|
555
|
+
return get__default["default"](res, "data", {});
|
|
549
556
|
}),
|
|
550
557
|
},
|
|
551
|
-
|
|
552
|
-
this.application = {
|
|
553
|
-
applicationAppVersion: {
|
|
554
|
-
/**
|
|
555
|
-
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_version&apiName=patch&version=v6 click to debug }
|
|
556
|
-
*/
|
|
557
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
558
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
559
|
-
return httpInstance
|
|
560
|
-
.request({
|
|
561
|
-
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`, path),
|
|
562
|
-
method: "PATCH",
|
|
563
|
-
data,
|
|
564
|
-
params,
|
|
565
|
-
headers,
|
|
566
|
-
})
|
|
567
|
-
.catch((e) => {
|
|
568
|
-
this.logger.error(formatErrors(e));
|
|
569
|
-
throw e;
|
|
570
|
-
});
|
|
571
|
-
}),
|
|
558
|
+
badgeGrant: {
|
|
572
559
|
/**
|
|
573
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
560
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=delete&version=v1 click to debug }
|
|
574
561
|
*/
|
|
575
|
-
|
|
562
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
576
563
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
577
564
|
return httpInstance
|
|
578
565
|
.request({
|
|
579
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
580
|
-
method: "
|
|
566
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`, path),
|
|
567
|
+
method: "DELETE",
|
|
581
568
|
data,
|
|
582
569
|
params,
|
|
583
570
|
headers,
|
|
@@ -587,17 +574,15 @@ class Client$1 {
|
|
|
587
574
|
throw e;
|
|
588
575
|
});
|
|
589
576
|
}),
|
|
590
|
-
},
|
|
591
|
-
application: {
|
|
592
577
|
/**
|
|
593
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
578
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=create&version=v1 click to debug }
|
|
594
579
|
*/
|
|
595
|
-
|
|
580
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
596
581
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
597
582
|
return httpInstance
|
|
598
583
|
.request({
|
|
599
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
600
|
-
method: "
|
|
584
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`, path),
|
|
585
|
+
method: "POST",
|
|
601
586
|
data,
|
|
602
587
|
params,
|
|
603
588
|
headers,
|
|
@@ -608,14 +593,14 @@ class Client$1 {
|
|
|
608
593
|
});
|
|
609
594
|
}),
|
|
610
595
|
/**
|
|
611
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
596
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=list&version=v1 click to debug }
|
|
612
597
|
*/
|
|
613
|
-
|
|
598
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
614
599
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
615
600
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
616
601
|
const res = yield httpInstance
|
|
617
602
|
.request({
|
|
618
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
603
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`, path),
|
|
619
604
|
method: "GET",
|
|
620
605
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
621
606
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -659,31 +644,13 @@ class Client$1 {
|
|
|
659
644
|
return Iterable;
|
|
660
645
|
}),
|
|
661
646
|
/**
|
|
662
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
663
|
-
*/
|
|
664
|
-
underauditlist: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
665
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
666
|
-
return httpInstance
|
|
667
|
-
.request({
|
|
668
|
-
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/underauditlist`, path),
|
|
669
|
-
method: "GET",
|
|
670
|
-
data,
|
|
671
|
-
params,
|
|
672
|
-
headers,
|
|
673
|
-
})
|
|
674
|
-
.catch((e) => {
|
|
675
|
-
this.logger.error(formatErrors(e));
|
|
676
|
-
throw e;
|
|
677
|
-
});
|
|
678
|
-
}),
|
|
679
|
-
/**
|
|
680
|
-
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=get&version=v6 click to debug }
|
|
647
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=list&version=v1 click to debug }
|
|
681
648
|
*/
|
|
682
|
-
|
|
649
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
683
650
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
684
651
|
return httpInstance
|
|
685
652
|
.request({
|
|
686
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
653
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`, path),
|
|
687
654
|
method: "GET",
|
|
688
655
|
data,
|
|
689
656
|
params,
|
|
@@ -694,37 +661,15 @@ class Client$1 {
|
|
|
694
661
|
throw e;
|
|
695
662
|
});
|
|
696
663
|
}),
|
|
697
|
-
},
|
|
698
|
-
applicationAppUsage: {
|
|
699
|
-
/**
|
|
700
|
-
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
701
|
-
*/
|
|
702
|
-
overview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
703
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
704
|
-
return httpInstance
|
|
705
|
-
.request({
|
|
706
|
-
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`, path),
|
|
707
|
-
method: "POST",
|
|
708
|
-
data,
|
|
709
|
-
params,
|
|
710
|
-
headers,
|
|
711
|
-
})
|
|
712
|
-
.catch((e) => {
|
|
713
|
-
this.logger.error(formatErrors(e));
|
|
714
|
-
throw e;
|
|
715
|
-
});
|
|
716
|
-
}),
|
|
717
|
-
},
|
|
718
|
-
applicationFeedback: {
|
|
719
664
|
/**
|
|
720
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
665
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=update&version=v1 click to debug }
|
|
721
666
|
*/
|
|
722
|
-
|
|
667
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
723
668
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
724
669
|
return httpInstance
|
|
725
670
|
.request({
|
|
726
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
727
|
-
method: "
|
|
671
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`, path),
|
|
672
|
+
method: "PUT",
|
|
728
673
|
data,
|
|
729
674
|
params,
|
|
730
675
|
headers,
|
|
@@ -735,13 +680,13 @@ class Client$1 {
|
|
|
735
680
|
});
|
|
736
681
|
}),
|
|
737
682
|
/**
|
|
738
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
683
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge.grant&apiName=get&version=v1 click to debug }
|
|
739
684
|
*/
|
|
740
|
-
|
|
685
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
741
686
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
742
687
|
return httpInstance
|
|
743
688
|
.request({
|
|
744
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
689
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`, path),
|
|
745
690
|
method: "GET",
|
|
746
691
|
data,
|
|
747
692
|
params,
|
|
@@ -753,35 +698,15 @@ class Client$1 {
|
|
|
753
698
|
});
|
|
754
699
|
}),
|
|
755
700
|
},
|
|
756
|
-
|
|
757
|
-
this.approval = {
|
|
758
|
-
instance: {
|
|
759
|
-
/**
|
|
760
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=add_sign&version=v4 click to debug }
|
|
761
|
-
*/
|
|
762
|
-
addSign: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
763
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
764
|
-
return httpInstance
|
|
765
|
-
.request({
|
|
766
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/add_sign`, path),
|
|
767
|
-
method: "POST",
|
|
768
|
-
data,
|
|
769
|
-
params,
|
|
770
|
-
headers,
|
|
771
|
-
})
|
|
772
|
-
.catch((e) => {
|
|
773
|
-
this.logger.error(formatErrors(e));
|
|
774
|
-
throw e;
|
|
775
|
-
});
|
|
776
|
-
}),
|
|
701
|
+
badge: {
|
|
777
702
|
/**
|
|
778
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
703
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=create&version=v1 click to debug }
|
|
779
704
|
*/
|
|
780
|
-
|
|
705
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
781
706
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
782
707
|
return httpInstance
|
|
783
708
|
.request({
|
|
784
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
709
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
785
710
|
method: "POST",
|
|
786
711
|
data,
|
|
787
712
|
params,
|
|
@@ -793,14 +718,14 @@ class Client$1 {
|
|
|
793
718
|
});
|
|
794
719
|
}),
|
|
795
720
|
/**
|
|
796
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
721
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=get&version=v1 click to debug }
|
|
797
722
|
*/
|
|
798
|
-
|
|
723
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
799
724
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
800
725
|
return httpInstance
|
|
801
726
|
.request({
|
|
802
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
803
|
-
method: "
|
|
727
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
|
|
728
|
+
method: "GET",
|
|
804
729
|
data,
|
|
805
730
|
params,
|
|
806
731
|
headers,
|
|
@@ -811,14 +736,14 @@ class Client$1 {
|
|
|
811
736
|
});
|
|
812
737
|
}),
|
|
813
738
|
/**
|
|
814
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
739
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=update&version=v1 click to debug }
|
|
815
740
|
*/
|
|
816
|
-
|
|
741
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
817
742
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
818
743
|
return httpInstance
|
|
819
744
|
.request({
|
|
820
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
821
|
-
method: "
|
|
745
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
|
|
746
|
+
method: "PUT",
|
|
822
747
|
data,
|
|
823
748
|
params,
|
|
824
749
|
headers,
|
|
@@ -829,14 +754,14 @@ class Client$1 {
|
|
|
829
754
|
});
|
|
830
755
|
}),
|
|
831
756
|
/**
|
|
832
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
757
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=list&version=v1 click to debug }
|
|
833
758
|
*/
|
|
834
759
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
835
760
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
836
761
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
837
762
|
const res = yield httpInstance
|
|
838
763
|
.request({
|
|
839
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
764
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
840
765
|
method: "GET",
|
|
841
766
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
842
767
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -880,13 +805,13 @@ class Client$1 {
|
|
|
880
805
|
return Iterable;
|
|
881
806
|
}),
|
|
882
807
|
/**
|
|
883
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
808
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=list&version=v1 click to debug }
|
|
884
809
|
*/
|
|
885
810
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
886
811
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
887
812
|
return httpInstance
|
|
888
813
|
.request({
|
|
889
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
814
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
890
815
|
method: "GET",
|
|
891
816
|
data,
|
|
892
817
|
params,
|
|
@@ -897,15 +822,39 @@ class Client$1 {
|
|
|
897
822
|
throw e;
|
|
898
823
|
});
|
|
899
824
|
}),
|
|
825
|
+
},
|
|
826
|
+
adminUserStat: {
|
|
900
827
|
/**
|
|
901
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
828
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=admin_user_stat&apiName=list&version=v1 click to debug }
|
|
902
829
|
*/
|
|
903
|
-
|
|
830
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
904
831
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
905
832
|
return httpInstance
|
|
906
833
|
.request({
|
|
907
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
908
|
-
method: "
|
|
834
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/admin_user_stats`, path),
|
|
835
|
+
method: "GET",
|
|
836
|
+
data,
|
|
837
|
+
params,
|
|
838
|
+
headers,
|
|
839
|
+
})
|
|
840
|
+
.catch((e) => {
|
|
841
|
+
this.logger.error(formatErrors(e));
|
|
842
|
+
throw e;
|
|
843
|
+
});
|
|
844
|
+
}),
|
|
845
|
+
},
|
|
846
|
+
};
|
|
847
|
+
this.application = {
|
|
848
|
+
applicationAppVersion: {
|
|
849
|
+
/**
|
|
850
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_version&apiName=patch&version=v6 click to debug }
|
|
851
|
+
*/
|
|
852
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
853
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
854
|
+
return httpInstance
|
|
855
|
+
.request({
|
|
856
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`, path),
|
|
857
|
+
method: "PATCH",
|
|
909
858
|
data,
|
|
910
859
|
params,
|
|
911
860
|
headers,
|
|
@@ -916,13 +865,13 @@ class Client$1 {
|
|
|
916
865
|
});
|
|
917
866
|
}),
|
|
918
867
|
/**
|
|
919
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
868
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_version&apiName=get&version=v6 click to debug }
|
|
920
869
|
*/
|
|
921
870
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
922
871
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
923
872
|
return httpInstance
|
|
924
873
|
.request({
|
|
925
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
874
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`, path),
|
|
926
875
|
method: "GET",
|
|
927
876
|
data,
|
|
928
877
|
params,
|
|
@@ -933,15 +882,17 @@ class Client$1 {
|
|
|
933
882
|
throw e;
|
|
934
883
|
});
|
|
935
884
|
}),
|
|
885
|
+
},
|
|
886
|
+
application: {
|
|
936
887
|
/**
|
|
937
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
888
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=patch&version=v6 click to debug }
|
|
938
889
|
*/
|
|
939
|
-
|
|
890
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
940
891
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
941
892
|
return httpInstance
|
|
942
893
|
.request({
|
|
943
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
944
|
-
method: "
|
|
894
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id`, path),
|
|
895
|
+
method: "PATCH",
|
|
945
896
|
data,
|
|
946
897
|
params,
|
|
947
898
|
headers,
|
|
@@ -952,15 +903,15 @@ class Client$1 {
|
|
|
952
903
|
});
|
|
953
904
|
}),
|
|
954
905
|
/**
|
|
955
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
906
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=underauditlist&version=v6 click to debug }
|
|
956
907
|
*/
|
|
957
|
-
|
|
908
|
+
underauditlistWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
958
909
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
959
910
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
960
911
|
const res = yield httpInstance
|
|
961
912
|
.request({
|
|
962
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
963
|
-
method: "
|
|
913
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/underauditlist`, path),
|
|
914
|
+
method: "GET",
|
|
964
915
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
965
916
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
966
917
|
})
|
|
@@ -1003,14 +954,14 @@ class Client$1 {
|
|
|
1003
954
|
return Iterable;
|
|
1004
955
|
}),
|
|
1005
956
|
/**
|
|
1006
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
957
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=underauditlist&version=v6 click to debug }
|
|
1007
958
|
*/
|
|
1008
|
-
|
|
959
|
+
underauditlist: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1009
960
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1010
961
|
return httpInstance
|
|
1011
962
|
.request({
|
|
1012
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
1013
|
-
method: "
|
|
963
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/underauditlist`, path),
|
|
964
|
+
method: "GET",
|
|
1014
965
|
data,
|
|
1015
966
|
params,
|
|
1016
967
|
headers,
|
|
@@ -1021,14 +972,14 @@ class Client$1 {
|
|
|
1021
972
|
});
|
|
1022
973
|
}),
|
|
1023
974
|
/**
|
|
1024
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
975
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application&apiName=get&version=v6 click to debug }
|
|
1025
976
|
*/
|
|
1026
|
-
|
|
977
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1027
978
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1028
979
|
return httpInstance
|
|
1029
980
|
.request({
|
|
1030
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
1031
|
-
method: "
|
|
981
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id`, path),
|
|
982
|
+
method: "GET",
|
|
1032
983
|
data,
|
|
1033
984
|
params,
|
|
1034
985
|
headers,
|
|
@@ -1039,35 +990,149 @@ class Client$1 {
|
|
|
1039
990
|
});
|
|
1040
991
|
}),
|
|
1041
992
|
},
|
|
1042
|
-
|
|
993
|
+
applicationAppUsage: {
|
|
1043
994
|
/**
|
|
1044
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
995
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
1045
996
|
*/
|
|
1046
|
-
|
|
997
|
+
overview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1047
998
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
return res;
|
|
999
|
+
return httpInstance
|
|
1000
|
+
.request({
|
|
1001
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`, path),
|
|
1002
|
+
method: "POST",
|
|
1003
|
+
data,
|
|
1004
|
+
params,
|
|
1005
|
+
headers,
|
|
1006
|
+
})
|
|
1007
|
+
.catch((e) => {
|
|
1008
|
+
this.logger.error(formatErrors(e));
|
|
1009
|
+
throw e;
|
|
1060
1010
|
});
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1011
|
+
}),
|
|
1012
|
+
},
|
|
1013
|
+
applicationFeedback: {
|
|
1014
|
+
/**
|
|
1015
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.feedback&apiName=patch&version=v6 click to debug }
|
|
1016
|
+
*/
|
|
1017
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1018
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1019
|
+
return httpInstance
|
|
1020
|
+
.request({
|
|
1021
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`, path),
|
|
1022
|
+
method: "PATCH",
|
|
1023
|
+
data,
|
|
1024
|
+
params,
|
|
1025
|
+
headers,
|
|
1026
|
+
})
|
|
1027
|
+
.catch((e) => {
|
|
1028
|
+
this.logger.error(formatErrors(e));
|
|
1029
|
+
throw e;
|
|
1030
|
+
});
|
|
1031
|
+
}),
|
|
1032
|
+
/**
|
|
1033
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.feedback&apiName=list&version=v6 click to debug }
|
|
1034
|
+
*/
|
|
1035
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1036
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1037
|
+
return httpInstance
|
|
1038
|
+
.request({
|
|
1039
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`, path),
|
|
1040
|
+
method: "GET",
|
|
1041
|
+
data,
|
|
1042
|
+
params,
|
|
1043
|
+
headers,
|
|
1044
|
+
})
|
|
1045
|
+
.catch((e) => {
|
|
1046
|
+
this.logger.error(formatErrors(e));
|
|
1047
|
+
throw e;
|
|
1048
|
+
});
|
|
1049
|
+
}),
|
|
1050
|
+
},
|
|
1051
|
+
};
|
|
1052
|
+
this.approval = {
|
|
1053
|
+
instance: {
|
|
1054
|
+
/**
|
|
1055
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=add_sign&version=v4 click to debug }
|
|
1056
|
+
*/
|
|
1057
|
+
addSign: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1058
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1059
|
+
return httpInstance
|
|
1060
|
+
.request({
|
|
1061
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/add_sign`, path),
|
|
1062
|
+
method: "POST",
|
|
1063
|
+
data,
|
|
1064
|
+
params,
|
|
1065
|
+
headers,
|
|
1066
|
+
})
|
|
1067
|
+
.catch((e) => {
|
|
1068
|
+
this.logger.error(formatErrors(e));
|
|
1069
|
+
throw e;
|
|
1070
|
+
});
|
|
1071
|
+
}),
|
|
1072
|
+
/**
|
|
1073
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=preview&version=v4 click to debug }
|
|
1074
|
+
*/
|
|
1075
|
+
preview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1076
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1077
|
+
return httpInstance
|
|
1078
|
+
.request({
|
|
1079
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/preview`, path),
|
|
1080
|
+
method: "POST",
|
|
1081
|
+
data,
|
|
1082
|
+
params,
|
|
1083
|
+
headers,
|
|
1084
|
+
})
|
|
1085
|
+
.catch((e) => {
|
|
1086
|
+
this.logger.error(formatErrors(e));
|
|
1087
|
+
throw e;
|
|
1088
|
+
});
|
|
1089
|
+
}),
|
|
1090
|
+
/**
|
|
1091
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=cc&version=v4 click to debug }
|
|
1092
|
+
*/
|
|
1093
|
+
cc: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1095
|
+
return httpInstance
|
|
1096
|
+
.request({
|
|
1097
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/cc`, path),
|
|
1098
|
+
method: "POST",
|
|
1099
|
+
data,
|
|
1100
|
+
params,
|
|
1101
|
+
headers,
|
|
1102
|
+
})
|
|
1103
|
+
.catch((e) => {
|
|
1104
|
+
this.logger.error(formatErrors(e));
|
|
1105
|
+
throw e;
|
|
1106
|
+
});
|
|
1107
|
+
}),
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=list&version=v4 click to debug }
|
|
1110
|
+
*/
|
|
1111
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1112
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1113
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1114
|
+
const res = yield httpInstance
|
|
1115
|
+
.request({
|
|
1116
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances`, path),
|
|
1117
|
+
method: "GET",
|
|
1118
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
1119
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
1120
|
+
})
|
|
1121
|
+
.catch((e) => {
|
|
1122
|
+
this.logger.error(formatErrors(e));
|
|
1123
|
+
});
|
|
1124
|
+
return res;
|
|
1125
|
+
});
|
|
1126
|
+
const Iterable = {
|
|
1127
|
+
[Symbol.asyncIterator]() {
|
|
1128
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1129
|
+
let hasMore = true;
|
|
1130
|
+
let pageToken;
|
|
1131
|
+
while (hasMore) {
|
|
1132
|
+
try {
|
|
1133
|
+
const res = yield __await(sendRequest({
|
|
1134
|
+
headers,
|
|
1135
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1071
1136
|
data,
|
|
1072
1137
|
}));
|
|
1073
1138
|
const _b = get__default["default"](res, "data") || {}, {
|
|
@@ -1092,13 +1157,13 @@ class Client$1 {
|
|
|
1092
1157
|
return Iterable;
|
|
1093
1158
|
}),
|
|
1094
1159
|
/**
|
|
1095
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=
|
|
1160
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=list&version=v4 click to debug }
|
|
1096
1161
|
*/
|
|
1097
|
-
|
|
1162
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1098
1163
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1099
1164
|
return httpInstance
|
|
1100
1165
|
.request({
|
|
1101
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/
|
|
1166
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances`, path),
|
|
1102
1167
|
method: "GET",
|
|
1103
1168
|
data,
|
|
1104
1169
|
params,
|
|
@@ -1110,13 +1175,13 @@ class Client$1 {
|
|
|
1110
1175
|
});
|
|
1111
1176
|
}),
|
|
1112
1177
|
/**
|
|
1113
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=
|
|
1178
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=cancel&version=v4 click to debug }
|
|
1114
1179
|
*/
|
|
1115
|
-
|
|
1180
|
+
cancel: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1116
1181
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1117
1182
|
return httpInstance
|
|
1118
1183
|
.request({
|
|
1119
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/
|
|
1184
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/cancel`, path),
|
|
1120
1185
|
method: "POST",
|
|
1121
1186
|
data,
|
|
1122
1187
|
params,
|
|
@@ -1128,13 +1193,136 @@ class Client$1 {
|
|
|
1128
1193
|
});
|
|
1129
1194
|
}),
|
|
1130
1195
|
/**
|
|
1131
|
-
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=
|
|
1196
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=get&version=v4 click to debug }
|
|
1132
1197
|
*/
|
|
1133
|
-
|
|
1198
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1134
1199
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1135
1200
|
return httpInstance
|
|
1136
1201
|
.request({
|
|
1137
|
-
url: fillApiPath(`${this.domain}/open-apis/approval/v4/
|
|
1202
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/:instance_id`, path),
|
|
1203
|
+
method: "GET",
|
|
1204
|
+
data,
|
|
1205
|
+
params,
|
|
1206
|
+
headers,
|
|
1207
|
+
})
|
|
1208
|
+
.catch((e) => {
|
|
1209
|
+
this.logger.error(formatErrors(e));
|
|
1210
|
+
throw e;
|
|
1211
|
+
});
|
|
1212
|
+
}),
|
|
1213
|
+
/**
|
|
1214
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=specified_rollback&version=v4 click to debug }
|
|
1215
|
+
*/
|
|
1216
|
+
specifiedRollback: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1217
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1218
|
+
return httpInstance
|
|
1219
|
+
.request({
|
|
1220
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`, path),
|
|
1221
|
+
method: "POST",
|
|
1222
|
+
data,
|
|
1223
|
+
params,
|
|
1224
|
+
headers,
|
|
1225
|
+
})
|
|
1226
|
+
.catch((e) => {
|
|
1227
|
+
this.logger.error(formatErrors(e));
|
|
1228
|
+
throw e;
|
|
1229
|
+
});
|
|
1230
|
+
}),
|
|
1231
|
+
/**
|
|
1232
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=query&version=v4 click to debug }
|
|
1233
|
+
*/
|
|
1234
|
+
queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1236
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1237
|
+
const res = yield httpInstance
|
|
1238
|
+
.request({
|
|
1239
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/query`, path),
|
|
1240
|
+
method: "POST",
|
|
1241
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
1242
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
1243
|
+
})
|
|
1244
|
+
.catch((e) => {
|
|
1245
|
+
this.logger.error(formatErrors(e));
|
|
1246
|
+
});
|
|
1247
|
+
return res;
|
|
1248
|
+
});
|
|
1249
|
+
const Iterable = {
|
|
1250
|
+
[Symbol.asyncIterator]() {
|
|
1251
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1252
|
+
let hasMore = true;
|
|
1253
|
+
let pageToken;
|
|
1254
|
+
while (hasMore) {
|
|
1255
|
+
try {
|
|
1256
|
+
const res = yield __await(sendRequest({
|
|
1257
|
+
headers,
|
|
1258
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1259
|
+
data,
|
|
1260
|
+
}));
|
|
1261
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
1262
|
+
// @ts-ignore
|
|
1263
|
+
has_more,
|
|
1264
|
+
// @ts-ignore
|
|
1265
|
+
page_token,
|
|
1266
|
+
// @ts-ignore
|
|
1267
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
1268
|
+
yield yield __await(rest);
|
|
1269
|
+
hasMore = Boolean(has_more);
|
|
1270
|
+
pageToken = page_token || next_page_token;
|
|
1271
|
+
}
|
|
1272
|
+
catch (e) {
|
|
1273
|
+
yield yield __await(null);
|
|
1274
|
+
break;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
},
|
|
1279
|
+
};
|
|
1280
|
+
return Iterable;
|
|
1281
|
+
}),
|
|
1282
|
+
/**
|
|
1283
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=query&version=v4 click to debug }
|
|
1284
|
+
*/
|
|
1285
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1286
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1287
|
+
return httpInstance
|
|
1288
|
+
.request({
|
|
1289
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/query`, path),
|
|
1290
|
+
method: "POST",
|
|
1291
|
+
data,
|
|
1292
|
+
params,
|
|
1293
|
+
headers,
|
|
1294
|
+
})
|
|
1295
|
+
.catch((e) => {
|
|
1296
|
+
this.logger.error(formatErrors(e));
|
|
1297
|
+
throw e;
|
|
1298
|
+
});
|
|
1299
|
+
}),
|
|
1300
|
+
/**
|
|
1301
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=search_cc&version=v4 click to debug }
|
|
1302
|
+
*/
|
|
1303
|
+
searchCc: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1304
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1305
|
+
return httpInstance
|
|
1306
|
+
.request({
|
|
1307
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances/search_cc`, path),
|
|
1308
|
+
method: "POST",
|
|
1309
|
+
data,
|
|
1310
|
+
params,
|
|
1311
|
+
headers,
|
|
1312
|
+
})
|
|
1313
|
+
.catch((e) => {
|
|
1314
|
+
this.logger.error(formatErrors(e));
|
|
1315
|
+
throw e;
|
|
1316
|
+
});
|
|
1317
|
+
}),
|
|
1318
|
+
/**
|
|
1319
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=instance&apiName=create&version=v4 click to debug }
|
|
1320
|
+
*/
|
|
1321
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1322
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1323
|
+
return httpInstance
|
|
1324
|
+
.request({
|
|
1325
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/instances`, path),
|
|
1138
1326
|
method: "POST",
|
|
1139
1327
|
data,
|
|
1140
1328
|
params,
|
|
@@ -1145,6 +1333,77 @@ class Client$1 {
|
|
|
1145
1333
|
throw e;
|
|
1146
1334
|
});
|
|
1147
1335
|
}),
|
|
1336
|
+
},
|
|
1337
|
+
task: {
|
|
1338
|
+
/**
|
|
1339
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=query&version=v4 click to debug }
|
|
1340
|
+
*/
|
|
1341
|
+
queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1342
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1343
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1344
|
+
const res = yield httpInstance
|
|
1345
|
+
.request({
|
|
1346
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/query`, path),
|
|
1347
|
+
method: "GET",
|
|
1348
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
1349
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
1350
|
+
})
|
|
1351
|
+
.catch((e) => {
|
|
1352
|
+
this.logger.error(formatErrors(e));
|
|
1353
|
+
});
|
|
1354
|
+
return res;
|
|
1355
|
+
});
|
|
1356
|
+
const Iterable = {
|
|
1357
|
+
[Symbol.asyncIterator]() {
|
|
1358
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1359
|
+
let hasMore = true;
|
|
1360
|
+
let pageToken;
|
|
1361
|
+
while (hasMore) {
|
|
1362
|
+
try {
|
|
1363
|
+
const res = yield __await(sendRequest({
|
|
1364
|
+
headers,
|
|
1365
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1366
|
+
data,
|
|
1367
|
+
}));
|
|
1368
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
1369
|
+
// @ts-ignore
|
|
1370
|
+
has_more,
|
|
1371
|
+
// @ts-ignore
|
|
1372
|
+
page_token,
|
|
1373
|
+
// @ts-ignore
|
|
1374
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
1375
|
+
yield yield __await(rest);
|
|
1376
|
+
hasMore = Boolean(has_more);
|
|
1377
|
+
pageToken = page_token || next_page_token;
|
|
1378
|
+
}
|
|
1379
|
+
catch (e) {
|
|
1380
|
+
yield yield __await(null);
|
|
1381
|
+
break;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
},
|
|
1386
|
+
};
|
|
1387
|
+
return Iterable;
|
|
1388
|
+
}),
|
|
1389
|
+
/**
|
|
1390
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=query&version=v4 click to debug }
|
|
1391
|
+
*/
|
|
1392
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1393
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1394
|
+
return httpInstance
|
|
1395
|
+
.request({
|
|
1396
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/query`, path),
|
|
1397
|
+
method: "GET",
|
|
1398
|
+
data,
|
|
1399
|
+
params,
|
|
1400
|
+
headers,
|
|
1401
|
+
})
|
|
1402
|
+
.catch((e) => {
|
|
1403
|
+
this.logger.error(formatErrors(e));
|
|
1404
|
+
throw e;
|
|
1405
|
+
});
|
|
1406
|
+
}),
|
|
1148
1407
|
/**
|
|
1149
1408
|
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=transfer&version=v4 click to debug }
|
|
1150
1409
|
*/
|
|
@@ -1181,6 +1440,60 @@ class Client$1 {
|
|
|
1181
1440
|
throw e;
|
|
1182
1441
|
});
|
|
1183
1442
|
}),
|
|
1443
|
+
/**
|
|
1444
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=resubmit&version=v4 click to debug }
|
|
1445
|
+
*/
|
|
1446
|
+
resubmit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1447
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1448
|
+
return httpInstance
|
|
1449
|
+
.request({
|
|
1450
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/resubmit`, path),
|
|
1451
|
+
method: "POST",
|
|
1452
|
+
data,
|
|
1453
|
+
params,
|
|
1454
|
+
headers,
|
|
1455
|
+
})
|
|
1456
|
+
.catch((e) => {
|
|
1457
|
+
this.logger.error(formatErrors(e));
|
|
1458
|
+
throw e;
|
|
1459
|
+
});
|
|
1460
|
+
}),
|
|
1461
|
+
/**
|
|
1462
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=reject&version=v4 click to debug }
|
|
1463
|
+
*/
|
|
1464
|
+
reject: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1465
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1466
|
+
return httpInstance
|
|
1467
|
+
.request({
|
|
1468
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/reject`, path),
|
|
1469
|
+
method: "POST",
|
|
1470
|
+
data,
|
|
1471
|
+
params,
|
|
1472
|
+
headers,
|
|
1473
|
+
})
|
|
1474
|
+
.catch((e) => {
|
|
1475
|
+
this.logger.error(formatErrors(e));
|
|
1476
|
+
throw e;
|
|
1477
|
+
});
|
|
1478
|
+
}),
|
|
1479
|
+
/**
|
|
1480
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=task&apiName=approve&version=v4 click to debug }
|
|
1481
|
+
*/
|
|
1482
|
+
approve: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1483
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1484
|
+
return httpInstance
|
|
1485
|
+
.request({
|
|
1486
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/tasks/approve`, path),
|
|
1487
|
+
method: "POST",
|
|
1488
|
+
data,
|
|
1489
|
+
params,
|
|
1490
|
+
headers,
|
|
1491
|
+
})
|
|
1492
|
+
.catch((e) => {
|
|
1493
|
+
this.logger.error(formatErrors(e));
|
|
1494
|
+
throw e;
|
|
1495
|
+
});
|
|
1496
|
+
}),
|
|
1184
1497
|
},
|
|
1185
1498
|
approval: {
|
|
1186
1499
|
/**
|
|
@@ -2033,15 +2346,15 @@ class Client$1 {
|
|
|
2033
2346
|
});
|
|
2034
2347
|
}),
|
|
2035
2348
|
},
|
|
2036
|
-
|
|
2349
|
+
userFlow: {
|
|
2037
2350
|
/**
|
|
2038
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2351
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=query&version=v1 click to debug }
|
|
2039
2352
|
*/
|
|
2040
|
-
|
|
2353
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2041
2354
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2042
2355
|
return httpInstance
|
|
2043
2356
|
.request({
|
|
2044
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2357
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/query`, path),
|
|
2045
2358
|
method: "POST",
|
|
2046
2359
|
data,
|
|
2047
2360
|
params,
|
|
@@ -2053,13 +2366,13 @@ class Client$1 {
|
|
|
2053
2366
|
});
|
|
2054
2367
|
}),
|
|
2055
2368
|
/**
|
|
2056
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2369
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=batch_create&version=v1 click to debug }
|
|
2057
2370
|
*/
|
|
2058
|
-
|
|
2371
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2059
2372
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2060
2373
|
return httpInstance
|
|
2061
2374
|
.request({
|
|
2062
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2375
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`, path),
|
|
2063
2376
|
method: "POST",
|
|
2064
2377
|
data,
|
|
2065
2378
|
params,
|
|
@@ -2070,17 +2383,15 @@ class Client$1 {
|
|
|
2070
2383
|
throw e;
|
|
2071
2384
|
});
|
|
2072
2385
|
}),
|
|
2073
|
-
},
|
|
2074
|
-
userFlow: {
|
|
2075
2386
|
/**
|
|
2076
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=
|
|
2387
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=get&version=v1 click to debug }
|
|
2077
2388
|
*/
|
|
2078
|
-
|
|
2389
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2079
2390
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2080
2391
|
return httpInstance
|
|
2081
2392
|
.request({
|
|
2082
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows
|
|
2083
|
-
method: "
|
|
2393
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`, path),
|
|
2394
|
+
method: "GET",
|
|
2084
2395
|
data,
|
|
2085
2396
|
params,
|
|
2086
2397
|
headers,
|
|
@@ -2090,14 +2401,16 @@ class Client$1 {
|
|
|
2090
2401
|
throw e;
|
|
2091
2402
|
});
|
|
2092
2403
|
}),
|
|
2404
|
+
},
|
|
2405
|
+
userTask: {
|
|
2093
2406
|
/**
|
|
2094
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2407
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_task&apiName=query&version=v1 click to debug }
|
|
2095
2408
|
*/
|
|
2096
|
-
|
|
2409
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2097
2410
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2098
2411
|
return httpInstance
|
|
2099
2412
|
.request({
|
|
2100
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2413
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_tasks/query`, path),
|
|
2101
2414
|
method: "POST",
|
|
2102
2415
|
data,
|
|
2103
2416
|
params,
|
|
@@ -2108,15 +2421,17 @@ class Client$1 {
|
|
|
2108
2421
|
throw e;
|
|
2109
2422
|
});
|
|
2110
2423
|
}),
|
|
2424
|
+
},
|
|
2425
|
+
approvalInfo: {
|
|
2111
2426
|
/**
|
|
2112
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2427
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=approval_info&apiName=process&version=v1 click to debug }
|
|
2113
2428
|
*/
|
|
2114
|
-
|
|
2429
|
+
process: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2115
2430
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2116
2431
|
return httpInstance
|
|
2117
2432
|
.request({
|
|
2118
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2119
|
-
method: "
|
|
2433
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/approval_infos/process`, path),
|
|
2434
|
+
method: "POST",
|
|
2120
2435
|
data,
|
|
2121
2436
|
params,
|
|
2122
2437
|
headers,
|
|
@@ -2127,15 +2442,15 @@ class Client$1 {
|
|
|
2127
2442
|
});
|
|
2128
2443
|
}),
|
|
2129
2444
|
},
|
|
2130
|
-
|
|
2445
|
+
userApproval: {
|
|
2131
2446
|
/**
|
|
2132
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2447
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_approval&apiName=query&version=v1 click to debug }
|
|
2133
2448
|
*/
|
|
2134
2449
|
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2135
2450
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2136
2451
|
return httpInstance
|
|
2137
2452
|
.request({
|
|
2138
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2453
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_approvals/query`, path),
|
|
2139
2454
|
method: "POST",
|
|
2140
2455
|
data,
|
|
2141
2456
|
params,
|
|
@@ -2146,16 +2461,14 @@ class Client$1 {
|
|
|
2146
2461
|
throw e;
|
|
2147
2462
|
});
|
|
2148
2463
|
}),
|
|
2149
|
-
},
|
|
2150
|
-
approvalInfo: {
|
|
2151
2464
|
/**
|
|
2152
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
2465
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_approval&apiName=create&version=v1 click to debug }
|
|
2153
2466
|
*/
|
|
2154
|
-
|
|
2467
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2155
2468
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2156
2469
|
return httpInstance
|
|
2157
2470
|
.request({
|
|
2158
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
2471
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_approvals`, path),
|
|
2159
2472
|
method: "POST",
|
|
2160
2473
|
data,
|
|
2161
2474
|
params,
|
|
@@ -2715,6 +3028,24 @@ class Client$1 {
|
|
|
2715
3028
|
throw e;
|
|
2716
3029
|
});
|
|
2717
3030
|
}),
|
|
3031
|
+
/**
|
|
3032
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.acl&apiName=unsubscription&version=v4 click to debug }
|
|
3033
|
+
*/
|
|
3034
|
+
unsubscription: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3035
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3036
|
+
return httpInstance
|
|
3037
|
+
.request({
|
|
3038
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`, path),
|
|
3039
|
+
method: "POST",
|
|
3040
|
+
data,
|
|
3041
|
+
params,
|
|
3042
|
+
headers,
|
|
3043
|
+
})
|
|
3044
|
+
.catch((e) => {
|
|
3045
|
+
this.logger.error(formatErrors(e));
|
|
3046
|
+
throw e;
|
|
3047
|
+
});
|
|
3048
|
+
}),
|
|
2718
3049
|
},
|
|
2719
3050
|
calendarEventAttendee: {
|
|
2720
3051
|
/**
|
|
@@ -3001,6 +3332,24 @@ class Client$1 {
|
|
|
3001
3332
|
throw e;
|
|
3002
3333
|
});
|
|
3003
3334
|
}),
|
|
3335
|
+
/**
|
|
3336
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=unsubscription&version=v4 click to debug }
|
|
3337
|
+
*/
|
|
3338
|
+
unsubscription: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3339
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3340
|
+
return httpInstance
|
|
3341
|
+
.request({
|
|
3342
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`, path),
|
|
3343
|
+
method: "POST",
|
|
3344
|
+
data,
|
|
3345
|
+
params,
|
|
3346
|
+
headers,
|
|
3347
|
+
})
|
|
3348
|
+
.catch((e) => {
|
|
3349
|
+
this.logger.error(formatErrors(e));
|
|
3350
|
+
throw e;
|
|
3351
|
+
});
|
|
3352
|
+
}),
|
|
3004
3353
|
},
|
|
3005
3354
|
calendar: {
|
|
3006
3355
|
/**
|
|
@@ -3234,6 +3583,24 @@ class Client$1 {
|
|
|
3234
3583
|
throw e;
|
|
3235
3584
|
});
|
|
3236
3585
|
}),
|
|
3586
|
+
/**
|
|
3587
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar&apiName=unsubscription&version=v4 click to debug }
|
|
3588
|
+
*/
|
|
3589
|
+
unsubscription: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3590
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3591
|
+
return httpInstance
|
|
3592
|
+
.request({
|
|
3593
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`, path),
|
|
3594
|
+
method: "POST",
|
|
3595
|
+
data,
|
|
3596
|
+
params,
|
|
3597
|
+
headers,
|
|
3598
|
+
})
|
|
3599
|
+
.catch((e) => {
|
|
3600
|
+
this.logger.error(formatErrors(e));
|
|
3601
|
+
throw e;
|
|
3602
|
+
});
|
|
3603
|
+
}),
|
|
3237
3604
|
},
|
|
3238
3605
|
timeoffEvent: {
|
|
3239
3606
|
/**
|
|
@@ -4405,14 +4772,32 @@ class Client$1 {
|
|
|
4405
4772
|
},
|
|
4406
4773
|
user: {
|
|
4407
4774
|
/**
|
|
4408
|
-
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
|
|
4775
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
|
|
4776
|
+
*/
|
|
4777
|
+
batchGetId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4778
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4779
|
+
return httpInstance
|
|
4780
|
+
.request({
|
|
4781
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/batch_get_id`, path),
|
|
4782
|
+
method: "POST",
|
|
4783
|
+
data,
|
|
4784
|
+
params,
|
|
4785
|
+
headers,
|
|
4786
|
+
})
|
|
4787
|
+
.catch((e) => {
|
|
4788
|
+
this.logger.error(formatErrors(e));
|
|
4789
|
+
throw e;
|
|
4790
|
+
});
|
|
4791
|
+
}),
|
|
4792
|
+
/**
|
|
4793
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=delete&version=v3 click to debug }
|
|
4409
4794
|
*/
|
|
4410
|
-
|
|
4795
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4411
4796
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4412
4797
|
return httpInstance
|
|
4413
4798
|
.request({
|
|
4414
|
-
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users
|
|
4415
|
-
method: "
|
|
4799
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id`, path),
|
|
4800
|
+
method: "DELETE",
|
|
4416
4801
|
data,
|
|
4417
4802
|
params,
|
|
4418
4803
|
headers,
|
|
@@ -4614,24 +4999,6 @@ class Client$1 {
|
|
|
4614
4999
|
throw e;
|
|
4615
5000
|
});
|
|
4616
5001
|
}),
|
|
4617
|
-
/**
|
|
4618
|
-
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=delete&version=v3 click to debug }
|
|
4619
|
-
*/
|
|
4620
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4621
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4622
|
-
return httpInstance
|
|
4623
|
-
.request({
|
|
4624
|
-
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id`, path),
|
|
4625
|
-
method: "DELETE",
|
|
4626
|
-
data,
|
|
4627
|
-
params,
|
|
4628
|
-
headers,
|
|
4629
|
-
})
|
|
4630
|
-
.catch((e) => {
|
|
4631
|
-
this.logger.error(formatErrors(e));
|
|
4632
|
-
throw e;
|
|
4633
|
-
});
|
|
4634
|
-
}),
|
|
4635
5002
|
/**
|
|
4636
5003
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=create&version=v3 click to debug }
|
|
4637
5004
|
*/
|
|
@@ -5332,24 +5699,6 @@ class Client$1 {
|
|
|
5332
5699
|
throw e;
|
|
5333
5700
|
});
|
|
5334
5701
|
}),
|
|
5335
|
-
/**
|
|
5336
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=subscribe&version=v1 click to debug }
|
|
5337
|
-
*/
|
|
5338
|
-
subscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5339
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5340
|
-
return httpInstance
|
|
5341
|
-
.request({
|
|
5342
|
-
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`, path),
|
|
5343
|
-
method: "POST",
|
|
5344
|
-
data,
|
|
5345
|
-
params,
|
|
5346
|
-
headers,
|
|
5347
|
-
})
|
|
5348
|
-
.catch((e) => {
|
|
5349
|
-
this.logger.error(formatErrors(e));
|
|
5350
|
-
throw e;
|
|
5351
|
-
});
|
|
5352
|
-
}),
|
|
5353
5702
|
/**
|
|
5354
5703
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=move&version=v1 click to debug }
|
|
5355
5704
|
*/
|
|
@@ -5547,6 +5896,24 @@ class Client$1 {
|
|
|
5547
5896
|
throw e;
|
|
5548
5897
|
});
|
|
5549
5898
|
}),
|
|
5899
|
+
/**
|
|
5900
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=subscribe&version=v1 click to debug }
|
|
5901
|
+
*/
|
|
5902
|
+
subscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5903
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5904
|
+
return httpInstance
|
|
5905
|
+
.request({
|
|
5906
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`, path),
|
|
5907
|
+
method: "POST",
|
|
5908
|
+
data,
|
|
5909
|
+
params,
|
|
5910
|
+
headers,
|
|
5911
|
+
})
|
|
5912
|
+
.catch((e) => {
|
|
5913
|
+
this.logger.error(formatErrors(e));
|
|
5914
|
+
throw e;
|
|
5915
|
+
});
|
|
5916
|
+
}),
|
|
5550
5917
|
},
|
|
5551
5918
|
exportTask: {
|
|
5552
5919
|
/**
|
|
@@ -7872,14 +8239,14 @@ class Client$1 {
|
|
|
7872
8239
|
});
|
|
7873
8240
|
}),
|
|
7874
8241
|
/**
|
|
7875
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=
|
|
8242
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=patch&version=v1 click to debug }
|
|
7876
8243
|
*/
|
|
7877
|
-
|
|
8244
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7878
8245
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7879
8246
|
return httpInstance
|
|
7880
8247
|
.request({
|
|
7881
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id
|
|
7882
|
-
method: "
|
|
8248
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
|
|
8249
|
+
method: "PATCH",
|
|
7883
8250
|
data,
|
|
7884
8251
|
params,
|
|
7885
8252
|
headers,
|
|
@@ -7890,13 +8257,13 @@ class Client$1 {
|
|
|
7890
8257
|
});
|
|
7891
8258
|
}),
|
|
7892
8259
|
/**
|
|
7893
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=
|
|
8260
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=reply&version=v1 click to debug }
|
|
7894
8261
|
*/
|
|
7895
|
-
|
|
8262
|
+
reply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7896
8263
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7897
8264
|
return httpInstance
|
|
7898
8265
|
.request({
|
|
7899
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages`, path),
|
|
8266
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`, path),
|
|
7900
8267
|
method: "POST",
|
|
7901
8268
|
data,
|
|
7902
8269
|
params,
|
|
@@ -7908,14 +8275,14 @@ class Client$1 {
|
|
|
7908
8275
|
});
|
|
7909
8276
|
}),
|
|
7910
8277
|
/**
|
|
7911
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=
|
|
8278
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=create&version=v1 click to debug }
|
|
7912
8279
|
*/
|
|
7913
|
-
|
|
8280
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7914
8281
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7915
8282
|
return httpInstance
|
|
7916
8283
|
.request({
|
|
7917
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages
|
|
7918
|
-
method: "
|
|
8284
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages`, path),
|
|
8285
|
+
method: "POST",
|
|
7919
8286
|
data,
|
|
7920
8287
|
params,
|
|
7921
8288
|
headers,
|
|
@@ -8737,32 +9104,6 @@ class Client$1 {
|
|
|
8737
9104
|
});
|
|
8738
9105
|
}),
|
|
8739
9106
|
},
|
|
8740
|
-
messageResource: {
|
|
8741
|
-
/**
|
|
8742
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message.resource&apiName=get&version=v1 click to debug }
|
|
8743
|
-
*/
|
|
8744
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8745
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8746
|
-
const res = yield httpInstance
|
|
8747
|
-
.request({
|
|
8748
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`, path),
|
|
8749
|
-
method: "GET",
|
|
8750
|
-
headers,
|
|
8751
|
-
data,
|
|
8752
|
-
params,
|
|
8753
|
-
responseType: "stream",
|
|
8754
|
-
})
|
|
8755
|
-
.catch((e) => {
|
|
8756
|
-
this.logger.error(formatErrors(e));
|
|
8757
|
-
throw e;
|
|
8758
|
-
});
|
|
8759
|
-
return {
|
|
8760
|
-
writeFile: (filePath) => __awaiter(this, void 0, void 0, function* () {
|
|
8761
|
-
yield res.pipe(fs__default["default"].createWriteStream(filePath));
|
|
8762
|
-
}),
|
|
8763
|
-
};
|
|
8764
|
-
}),
|
|
8765
|
-
},
|
|
8766
9107
|
chatTab: {
|
|
8767
9108
|
/**
|
|
8768
9109
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat.tab&apiName=list_tabs&version=v1 click to debug }
|
|
@@ -8855,6 +9196,32 @@ class Client$1 {
|
|
|
8855
9196
|
});
|
|
8856
9197
|
}),
|
|
8857
9198
|
},
|
|
9199
|
+
messageResource: {
|
|
9200
|
+
/**
|
|
9201
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message.resource&apiName=get&version=v1 click to debug }
|
|
9202
|
+
*/
|
|
9203
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9204
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9205
|
+
const res = yield httpInstance
|
|
9206
|
+
.request({
|
|
9207
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`, path),
|
|
9208
|
+
method: "GET",
|
|
9209
|
+
headers,
|
|
9210
|
+
data,
|
|
9211
|
+
params,
|
|
9212
|
+
responseType: "stream",
|
|
9213
|
+
})
|
|
9214
|
+
.catch((e) => {
|
|
9215
|
+
this.logger.error(formatErrors(e));
|
|
9216
|
+
throw e;
|
|
9217
|
+
});
|
|
9218
|
+
return {
|
|
9219
|
+
writeFile: (filePath) => __awaiter(this, void 0, void 0, function* () {
|
|
9220
|
+
yield res.pipe(fs__default["default"].createWriteStream(filePath));
|
|
9221
|
+
}),
|
|
9222
|
+
};
|
|
9223
|
+
}),
|
|
9224
|
+
},
|
|
8858
9225
|
};
|
|
8859
9226
|
this.mail = {
|
|
8860
9227
|
publicMailbox: {
|
|
@@ -9522,24 +9889,6 @@ class Client$1 {
|
|
|
9522
9889
|
throw e;
|
|
9523
9890
|
});
|
|
9524
9891
|
}),
|
|
9525
|
-
/**
|
|
9526
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=create&version=v1 click to debug }
|
|
9527
|
-
*/
|
|
9528
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9529
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9530
|
-
return httpInstance
|
|
9531
|
-
.request({
|
|
9532
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`, path),
|
|
9533
|
-
method: "POST",
|
|
9534
|
-
data,
|
|
9535
|
-
params,
|
|
9536
|
-
headers,
|
|
9537
|
-
})
|
|
9538
|
-
.catch((e) => {
|
|
9539
|
-
this.logger.error(formatErrors(e));
|
|
9540
|
-
throw e;
|
|
9541
|
-
});
|
|
9542
|
-
}),
|
|
9543
9892
|
/**
|
|
9544
9893
|
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=get&version=v1 click to debug }
|
|
9545
9894
|
*/
|
|
@@ -9627,6 +9976,24 @@ class Client$1 {
|
|
|
9627
9976
|
throw e;
|
|
9628
9977
|
});
|
|
9629
9978
|
}),
|
|
9979
|
+
/**
|
|
9980
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=create&version=v1 click to debug }
|
|
9981
|
+
*/
|
|
9982
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9983
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9984
|
+
return httpInstance
|
|
9985
|
+
.request({
|
|
9986
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`, path),
|
|
9987
|
+
method: "POST",
|
|
9988
|
+
data,
|
|
9989
|
+
params,
|
|
9990
|
+
headers,
|
|
9991
|
+
})
|
|
9992
|
+
.catch((e) => {
|
|
9993
|
+
this.logger.error(formatErrors(e));
|
|
9994
|
+
throw e;
|
|
9995
|
+
});
|
|
9996
|
+
}),
|
|
9630
9997
|
},
|
|
9631
9998
|
mailgroupAlias: {
|
|
9632
9999
|
/**
|
|
@@ -10788,52 +11155,67 @@ class Client$1 {
|
|
|
10788
11155
|
this.spend = {};
|
|
10789
11156
|
this.sup_project = {};
|
|
10790
11157
|
this.task = {
|
|
10791
|
-
|
|
10792
|
-
/**
|
|
10793
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=delete&version=v1 click to debug }
|
|
10794
|
-
*/
|
|
10795
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10796
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10797
|
-
return httpInstance
|
|
10798
|
-
.request({
|
|
10799
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
10800
|
-
method: "DELETE",
|
|
10801
|
-
data,
|
|
10802
|
-
params,
|
|
10803
|
-
headers,
|
|
10804
|
-
})
|
|
10805
|
-
.catch((e) => {
|
|
10806
|
-
this.logger.error(formatErrors(e));
|
|
10807
|
-
throw e;
|
|
10808
|
-
});
|
|
10809
|
-
}),
|
|
11158
|
+
taskReminder: {
|
|
10810
11159
|
/**
|
|
10811
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11160
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=list&version=v1 click to debug }
|
|
10812
11161
|
*/
|
|
10813
|
-
|
|
11162
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10814
11163
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
11164
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11165
|
+
const res = yield httpInstance
|
|
11166
|
+
.request({
|
|
11167
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`, path),
|
|
11168
|
+
method: "GET",
|
|
11169
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
11170
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
11171
|
+
})
|
|
11172
|
+
.catch((e) => {
|
|
11173
|
+
this.logger.error(formatErrors(e));
|
|
11174
|
+
});
|
|
11175
|
+
return res;
|
|
10826
11176
|
});
|
|
11177
|
+
const Iterable = {
|
|
11178
|
+
[Symbol.asyncIterator]() {
|
|
11179
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
11180
|
+
let hasMore = true;
|
|
11181
|
+
let pageToken;
|
|
11182
|
+
while (hasMore) {
|
|
11183
|
+
try {
|
|
11184
|
+
const res = yield __await(sendRequest({
|
|
11185
|
+
headers,
|
|
11186
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
11187
|
+
data,
|
|
11188
|
+
}));
|
|
11189
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
11190
|
+
// @ts-ignore
|
|
11191
|
+
has_more,
|
|
11192
|
+
// @ts-ignore
|
|
11193
|
+
page_token,
|
|
11194
|
+
// @ts-ignore
|
|
11195
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
11196
|
+
yield yield __await(rest);
|
|
11197
|
+
hasMore = Boolean(has_more);
|
|
11198
|
+
pageToken = page_token || next_page_token;
|
|
11199
|
+
}
|
|
11200
|
+
catch (e) {
|
|
11201
|
+
yield yield __await(null);
|
|
11202
|
+
break;
|
|
11203
|
+
}
|
|
11204
|
+
}
|
|
11205
|
+
});
|
|
11206
|
+
},
|
|
11207
|
+
};
|
|
11208
|
+
return Iterable;
|
|
10827
11209
|
}),
|
|
10828
11210
|
/**
|
|
10829
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11211
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=list&version=v1 click to debug }
|
|
10830
11212
|
*/
|
|
10831
|
-
|
|
11213
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10832
11214
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10833
11215
|
return httpInstance
|
|
10834
11216
|
.request({
|
|
10835
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
10836
|
-
method: "
|
|
11217
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`, path),
|
|
11218
|
+
method: "GET",
|
|
10837
11219
|
data,
|
|
10838
11220
|
params,
|
|
10839
11221
|
headers,
|
|
@@ -10844,13 +11226,13 @@ class Client$1 {
|
|
|
10844
11226
|
});
|
|
10845
11227
|
}),
|
|
10846
11228
|
/**
|
|
10847
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11229
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=create&version=v1 click to debug }
|
|
10848
11230
|
*/
|
|
10849
|
-
|
|
11231
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10850
11232
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10851
11233
|
return httpInstance
|
|
10852
11234
|
.request({
|
|
10853
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11235
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`, path),
|
|
10854
11236
|
method: "POST",
|
|
10855
11237
|
data,
|
|
10856
11238
|
params,
|
|
@@ -10862,14 +11244,14 @@ class Client$1 {
|
|
|
10862
11244
|
});
|
|
10863
11245
|
}),
|
|
10864
11246
|
/**
|
|
10865
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11247
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.reminder&apiName=delete&version=v1 click to debug }
|
|
10866
11248
|
*/
|
|
10867
|
-
|
|
11249
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10868
11250
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10869
11251
|
return httpInstance
|
|
10870
11252
|
.request({
|
|
10871
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
10872
|
-
method: "
|
|
11253
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`, path),
|
|
11254
|
+
method: "DELETE",
|
|
10873
11255
|
data,
|
|
10874
11256
|
params,
|
|
10875
11257
|
headers,
|
|
@@ -10879,15 +11261,17 @@ class Client$1 {
|
|
|
10879
11261
|
throw e;
|
|
10880
11262
|
});
|
|
10881
11263
|
}),
|
|
11264
|
+
},
|
|
11265
|
+
taskComment: {
|
|
10882
11266
|
/**
|
|
10883
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11267
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=delete&version=v1 click to debug }
|
|
10884
11268
|
*/
|
|
10885
|
-
|
|
11269
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10886
11270
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10887
11271
|
return httpInstance
|
|
10888
11272
|
.request({
|
|
10889
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
10890
|
-
method: "
|
|
11273
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11274
|
+
method: "DELETE",
|
|
10891
11275
|
data,
|
|
10892
11276
|
params,
|
|
10893
11277
|
headers,
|
|
@@ -10898,14 +11282,14 @@ class Client$1 {
|
|
|
10898
11282
|
});
|
|
10899
11283
|
}),
|
|
10900
11284
|
/**
|
|
10901
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11285
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=get&version=v1 click to debug }
|
|
10902
11286
|
*/
|
|
10903
|
-
|
|
11287
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10904
11288
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10905
11289
|
return httpInstance
|
|
10906
11290
|
.request({
|
|
10907
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
10908
|
-
method: "
|
|
11291
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11292
|
+
method: "GET",
|
|
10909
11293
|
data,
|
|
10910
11294
|
params,
|
|
10911
11295
|
headers,
|
|
@@ -10916,14 +11300,14 @@ class Client$1 {
|
|
|
10916
11300
|
});
|
|
10917
11301
|
}),
|
|
10918
11302
|
/**
|
|
10919
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11303
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=list&version=v1 click to debug }
|
|
10920
11304
|
*/
|
|
10921
11305
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10922
11306
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10923
11307
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
10924
11308
|
const res = yield httpInstance
|
|
10925
11309
|
.request({
|
|
10926
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11310
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`, path),
|
|
10927
11311
|
method: "GET",
|
|
10928
11312
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
10929
11313
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -10967,13 +11351,13 @@ class Client$1 {
|
|
|
10967
11351
|
return Iterable;
|
|
10968
11352
|
}),
|
|
10969
11353
|
/**
|
|
10970
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11354
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=list&version=v1 click to debug }
|
|
10971
11355
|
*/
|
|
10972
11356
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10973
11357
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10974
11358
|
return httpInstance
|
|
10975
11359
|
.request({
|
|
10976
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11360
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`, path),
|
|
10977
11361
|
method: "GET",
|
|
10978
11362
|
data,
|
|
10979
11363
|
params,
|
|
@@ -10985,14 +11369,14 @@ class Client$1 {
|
|
|
10985
11369
|
});
|
|
10986
11370
|
}),
|
|
10987
11371
|
/**
|
|
10988
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=
|
|
11372
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=update&version=v1 click to debug }
|
|
10989
11373
|
*/
|
|
10990
|
-
|
|
11374
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10991
11375
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10992
11376
|
return httpInstance
|
|
10993
11377
|
.request({
|
|
10994
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
10995
|
-
method: "
|
|
11378
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11379
|
+
method: "PUT",
|
|
10996
11380
|
data,
|
|
10997
11381
|
params,
|
|
10998
11382
|
headers,
|
|
@@ -11002,16 +11386,14 @@ class Client$1 {
|
|
|
11002
11386
|
throw e;
|
|
11003
11387
|
});
|
|
11004
11388
|
}),
|
|
11005
|
-
},
|
|
11006
|
-
taskReminder: {
|
|
11007
11389
|
/**
|
|
11008
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11390
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=create&version=v1 click to debug }
|
|
11009
11391
|
*/
|
|
11010
11392
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11011
11393
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11012
11394
|
return httpInstance
|
|
11013
11395
|
.request({
|
|
11014
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11396
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`, path),
|
|
11015
11397
|
method: "POST",
|
|
11016
11398
|
data,
|
|
11017
11399
|
params,
|
|
@@ -11022,15 +11404,17 @@ class Client$1 {
|
|
|
11022
11404
|
throw e;
|
|
11023
11405
|
});
|
|
11024
11406
|
}),
|
|
11407
|
+
},
|
|
11408
|
+
taskCollaborator: {
|
|
11025
11409
|
/**
|
|
11026
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11410
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=list&version=v1 click to debug }
|
|
11027
11411
|
*/
|
|
11028
11412
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11029
11413
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11030
11414
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11031
11415
|
const res = yield httpInstance
|
|
11032
11416
|
.request({
|
|
11033
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11417
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11034
11418
|
method: "GET",
|
|
11035
11419
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
11036
11420
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -11074,13 +11458,13 @@ class Client$1 {
|
|
|
11074
11458
|
return Iterable;
|
|
11075
11459
|
}),
|
|
11076
11460
|
/**
|
|
11077
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11461
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=list&version=v1 click to debug }
|
|
11078
11462
|
*/
|
|
11079
11463
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11080
11464
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11081
11465
|
return httpInstance
|
|
11082
11466
|
.request({
|
|
11083
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11467
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11084
11468
|
method: "GET",
|
|
11085
11469
|
data,
|
|
11086
11470
|
params,
|
|
@@ -11092,14 +11476,14 @@ class Client$1 {
|
|
|
11092
11476
|
});
|
|
11093
11477
|
}),
|
|
11094
11478
|
/**
|
|
11095
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11479
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=create&version=v1 click to debug }
|
|
11096
11480
|
*/
|
|
11097
|
-
|
|
11481
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11098
11482
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11099
11483
|
return httpInstance
|
|
11100
11484
|
.request({
|
|
11101
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11102
|
-
method: "
|
|
11485
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11486
|
+
method: "POST",
|
|
11103
11487
|
data,
|
|
11104
11488
|
params,
|
|
11105
11489
|
headers,
|
|
@@ -11109,16 +11493,14 @@ class Client$1 {
|
|
|
11109
11493
|
throw e;
|
|
11110
11494
|
});
|
|
11111
11495
|
}),
|
|
11112
|
-
},
|
|
11113
|
-
taskComment: {
|
|
11114
11496
|
/**
|
|
11115
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11497
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=delete&version=v1 click to debug }
|
|
11116
11498
|
*/
|
|
11117
11499
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11118
11500
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11119
11501
|
return httpInstance
|
|
11120
11502
|
.request({
|
|
11121
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11503
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`, path),
|
|
11122
11504
|
method: "DELETE",
|
|
11123
11505
|
data,
|
|
11124
11506
|
params,
|
|
@@ -11129,33 +11511,17 @@ class Client$1 {
|
|
|
11129
11511
|
throw e;
|
|
11130
11512
|
});
|
|
11131
11513
|
}),
|
|
11514
|
+
},
|
|
11515
|
+
taskFollower: {
|
|
11132
11516
|
/**
|
|
11133
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11134
|
-
*/
|
|
11135
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11136
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11137
|
-
return httpInstance
|
|
11138
|
-
.request({
|
|
11139
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`, path),
|
|
11140
|
-
method: "GET",
|
|
11141
|
-
data,
|
|
11142
|
-
params,
|
|
11143
|
-
headers,
|
|
11144
|
-
})
|
|
11145
|
-
.catch((e) => {
|
|
11146
|
-
this.logger.error(formatErrors(e));
|
|
11147
|
-
throw e;
|
|
11148
|
-
});
|
|
11149
|
-
}),
|
|
11150
|
-
/**
|
|
11151
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.comment&apiName=list&version=v1 click to debug }
|
|
11517
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=list&version=v1 click to debug }
|
|
11152
11518
|
*/
|
|
11153
11519
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11154
11520
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11155
11521
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11156
11522
|
const res = yield httpInstance
|
|
11157
11523
|
.request({
|
|
11158
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11524
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`, path),
|
|
11159
11525
|
method: "GET",
|
|
11160
11526
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
11161
11527
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -11199,13 +11565,13 @@ class Client$1 {
|
|
|
11199
11565
|
return Iterable;
|
|
11200
11566
|
}),
|
|
11201
11567
|
/**
|
|
11202
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11568
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=list&version=v1 click to debug }
|
|
11203
11569
|
*/
|
|
11204
11570
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11205
11571
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11206
11572
|
return httpInstance
|
|
11207
11573
|
.request({
|
|
11208
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11574
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`, path),
|
|
11209
11575
|
method: "GET",
|
|
11210
11576
|
data,
|
|
11211
11577
|
params,
|
|
@@ -11217,14 +11583,14 @@ class Client$1 {
|
|
|
11217
11583
|
});
|
|
11218
11584
|
}),
|
|
11219
11585
|
/**
|
|
11220
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11586
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=create&version=v1 click to debug }
|
|
11221
11587
|
*/
|
|
11222
|
-
|
|
11588
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11223
11589
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11224
11590
|
return httpInstance
|
|
11225
11591
|
.request({
|
|
11226
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11227
|
-
method: "
|
|
11592
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`, path),
|
|
11593
|
+
method: "POST",
|
|
11228
11594
|
data,
|
|
11229
11595
|
params,
|
|
11230
11596
|
headers,
|
|
@@ -11235,14 +11601,14 @@ class Client$1 {
|
|
|
11235
11601
|
});
|
|
11236
11602
|
}),
|
|
11237
11603
|
/**
|
|
11238
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.
|
|
11604
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.follower&apiName=delete&version=v1 click to debug }
|
|
11239
11605
|
*/
|
|
11240
|
-
|
|
11606
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11241
11607
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11242
11608
|
return httpInstance
|
|
11243
11609
|
.request({
|
|
11244
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11245
|
-
method: "
|
|
11610
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`, path),
|
|
11611
|
+
method: "DELETE",
|
|
11246
11612
|
data,
|
|
11247
11613
|
params,
|
|
11248
11614
|
headers,
|
|
@@ -11253,67 +11619,16 @@ class Client$1 {
|
|
|
11253
11619
|
});
|
|
11254
11620
|
}),
|
|
11255
11621
|
},
|
|
11256
|
-
|
|
11257
|
-
/**
|
|
11258
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task.collaborator&apiName=list&version=v1 click to debug }
|
|
11259
|
-
*/
|
|
11260
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11261
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11262
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11263
|
-
const res = yield httpInstance
|
|
11264
|
-
.request({
|
|
11265
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`, path),
|
|
11266
|
-
method: "GET",
|
|
11267
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
11268
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
11269
|
-
})
|
|
11270
|
-
.catch((e) => {
|
|
11271
|
-
this.logger.error(formatErrors(e));
|
|
11272
|
-
});
|
|
11273
|
-
return res;
|
|
11274
|
-
});
|
|
11275
|
-
const Iterable = {
|
|
11276
|
-
[Symbol.asyncIterator]() {
|
|
11277
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
11278
|
-
let hasMore = true;
|
|
11279
|
-
let pageToken;
|
|
11280
|
-
while (hasMore) {
|
|
11281
|
-
try {
|
|
11282
|
-
const res = yield __await(sendRequest({
|
|
11283
|
-
headers,
|
|
11284
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
11285
|
-
data,
|
|
11286
|
-
}));
|
|
11287
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
11288
|
-
// @ts-ignore
|
|
11289
|
-
has_more,
|
|
11290
|
-
// @ts-ignore
|
|
11291
|
-
page_token,
|
|
11292
|
-
// @ts-ignore
|
|
11293
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
11294
|
-
yield yield __await(rest);
|
|
11295
|
-
hasMore = Boolean(has_more);
|
|
11296
|
-
pageToken = page_token || next_page_token;
|
|
11297
|
-
}
|
|
11298
|
-
catch (e) {
|
|
11299
|
-
yield yield __await(null);
|
|
11300
|
-
break;
|
|
11301
|
-
}
|
|
11302
|
-
}
|
|
11303
|
-
});
|
|
11304
|
-
},
|
|
11305
|
-
};
|
|
11306
|
-
return Iterable;
|
|
11307
|
-
}),
|
|
11622
|
+
task: {
|
|
11308
11623
|
/**
|
|
11309
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11624
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=batch_delete_follower&version=v1 click to debug }
|
|
11310
11625
|
*/
|
|
11311
|
-
|
|
11626
|
+
batchDeleteFollower: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11312
11627
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11313
11628
|
return httpInstance
|
|
11314
11629
|
.request({
|
|
11315
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11316
|
-
method: "
|
|
11630
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`, path),
|
|
11631
|
+
method: "POST",
|
|
11317
11632
|
data,
|
|
11318
11633
|
params,
|
|
11319
11634
|
headers,
|
|
@@ -11324,13 +11639,13 @@ class Client$1 {
|
|
|
11324
11639
|
});
|
|
11325
11640
|
}),
|
|
11326
11641
|
/**
|
|
11327
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11642
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=batch_delete_collaborator&version=v1 click to debug }
|
|
11328
11643
|
*/
|
|
11329
|
-
|
|
11644
|
+
batchDeleteCollaborator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11330
11645
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11331
11646
|
return httpInstance
|
|
11332
11647
|
.request({
|
|
11333
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11648
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`, path),
|
|
11334
11649
|
method: "POST",
|
|
11335
11650
|
data,
|
|
11336
11651
|
params,
|
|
@@ -11342,14 +11657,14 @@ class Client$1 {
|
|
|
11342
11657
|
});
|
|
11343
11658
|
}),
|
|
11344
11659
|
/**
|
|
11345
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11660
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=get&version=v1 click to debug }
|
|
11346
11661
|
*/
|
|
11347
|
-
|
|
11662
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11348
11663
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11349
11664
|
return httpInstance
|
|
11350
11665
|
.request({
|
|
11351
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id
|
|
11352
|
-
method: "
|
|
11666
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
11667
|
+
method: "GET",
|
|
11353
11668
|
data,
|
|
11354
11669
|
params,
|
|
11355
11670
|
headers,
|
|
@@ -11359,17 +11674,15 @@ class Client$1 {
|
|
|
11359
11674
|
throw e;
|
|
11360
11675
|
});
|
|
11361
11676
|
}),
|
|
11362
|
-
},
|
|
11363
|
-
taskFollower: {
|
|
11364
11677
|
/**
|
|
11365
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11678
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11366
11679
|
*/
|
|
11367
11680
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11368
11681
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11369
11682
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11370
11683
|
const res = yield httpInstance
|
|
11371
11684
|
.request({
|
|
11372
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks
|
|
11685
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11373
11686
|
method: "GET",
|
|
11374
11687
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
11375
11688
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -11413,14 +11726,68 @@ class Client$1 {
|
|
|
11413
11726
|
return Iterable;
|
|
11414
11727
|
}),
|
|
11415
11728
|
/**
|
|
11416
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11729
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=list&version=v1 click to debug }
|
|
11730
|
+
*/
|
|
11731
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11732
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11733
|
+
return httpInstance
|
|
11734
|
+
.request({
|
|
11735
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11736
|
+
method: "GET",
|
|
11737
|
+
data,
|
|
11738
|
+
params,
|
|
11739
|
+
headers,
|
|
11740
|
+
})
|
|
11741
|
+
.catch((e) => {
|
|
11742
|
+
this.logger.error(formatErrors(e));
|
|
11743
|
+
throw e;
|
|
11744
|
+
});
|
|
11745
|
+
}),
|
|
11746
|
+
/**
|
|
11747
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=delete&version=v1 click to debug }
|
|
11748
|
+
*/
|
|
11749
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11750
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11751
|
+
return httpInstance
|
|
11752
|
+
.request({
|
|
11753
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
11754
|
+
method: "DELETE",
|
|
11755
|
+
data,
|
|
11756
|
+
params,
|
|
11757
|
+
headers,
|
|
11758
|
+
})
|
|
11759
|
+
.catch((e) => {
|
|
11760
|
+
this.logger.error(formatErrors(e));
|
|
11761
|
+
throw e;
|
|
11762
|
+
});
|
|
11763
|
+
}),
|
|
11764
|
+
/**
|
|
11765
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=complete&version=v1 click to debug }
|
|
11766
|
+
*/
|
|
11767
|
+
complete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11768
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11769
|
+
return httpInstance
|
|
11770
|
+
.request({
|
|
11771
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`, path),
|
|
11772
|
+
method: "POST",
|
|
11773
|
+
data,
|
|
11774
|
+
params,
|
|
11775
|
+
headers,
|
|
11776
|
+
})
|
|
11777
|
+
.catch((e) => {
|
|
11778
|
+
this.logger.error(formatErrors(e));
|
|
11779
|
+
throw e;
|
|
11780
|
+
});
|
|
11781
|
+
}),
|
|
11782
|
+
/**
|
|
11783
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=uncomplete&version=v1 click to debug }
|
|
11417
11784
|
*/
|
|
11418
|
-
|
|
11785
|
+
uncomplete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11419
11786
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11420
11787
|
return httpInstance
|
|
11421
11788
|
.request({
|
|
11422
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/
|
|
11423
|
-
method: "
|
|
11789
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`, path),
|
|
11790
|
+
method: "POST",
|
|
11424
11791
|
data,
|
|
11425
11792
|
params,
|
|
11426
11793
|
headers,
|
|
@@ -11431,14 +11798,14 @@ class Client$1 {
|
|
|
11431
11798
|
});
|
|
11432
11799
|
}),
|
|
11433
11800
|
/**
|
|
11434
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11801
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=patch&version=v1 click to debug }
|
|
11435
11802
|
*/
|
|
11436
|
-
|
|
11803
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11437
11804
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11438
11805
|
return httpInstance
|
|
11439
11806
|
.request({
|
|
11440
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id
|
|
11441
|
-
method: "
|
|
11807
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks/:task_id`, path),
|
|
11808
|
+
method: "PATCH",
|
|
11442
11809
|
data,
|
|
11443
11810
|
params,
|
|
11444
11811
|
headers,
|
|
@@ -11449,14 +11816,14 @@ class Client$1 {
|
|
|
11449
11816
|
});
|
|
11450
11817
|
}),
|
|
11451
11818
|
/**
|
|
11452
|
-
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task
|
|
11819
|
+
* {@link https://open.feishu.cn/api-explorer?project=task&resource=task&apiName=create&version=v1 click to debug }
|
|
11453
11820
|
*/
|
|
11454
|
-
|
|
11821
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11455
11822
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11456
11823
|
return httpInstance
|
|
11457
11824
|
.request({
|
|
11458
|
-
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks
|
|
11459
|
-
method: "
|
|
11825
|
+
url: fillApiPath(`${this.domain}/open-apis/task/v1/tasks`, path),
|
|
11826
|
+
method: "POST",
|
|
11460
11827
|
data,
|
|
11461
11828
|
params,
|
|
11462
11829
|
headers,
|
|
@@ -11552,14 +11919,14 @@ class Client$1 {
|
|
|
11552
11919
|
});
|
|
11553
11920
|
}),
|
|
11554
11921
|
/**
|
|
11555
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11922
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=get_active_meeting&version=v1 click to debug }
|
|
11556
11923
|
*/
|
|
11557
|
-
|
|
11924
|
+
getActiveMeeting: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11558
11925
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11559
11926
|
return httpInstance
|
|
11560
11927
|
.request({
|
|
11561
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/
|
|
11562
|
-
method: "
|
|
11928
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`, path),
|
|
11929
|
+
method: "GET",
|
|
11563
11930
|
data,
|
|
11564
11931
|
params,
|
|
11565
11932
|
headers,
|
|
@@ -11570,14 +11937,14 @@ class Client$1 {
|
|
|
11570
11937
|
});
|
|
11571
11938
|
}),
|
|
11572
11939
|
/**
|
|
11573
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11940
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=get&version=v1 click to debug }
|
|
11574
11941
|
*/
|
|
11575
|
-
|
|
11942
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11576
11943
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11577
11944
|
return httpInstance
|
|
11578
11945
|
.request({
|
|
11579
11946
|
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`, path),
|
|
11580
|
-
method: "
|
|
11947
|
+
method: "GET",
|
|
11581
11948
|
data,
|
|
11582
11949
|
params,
|
|
11583
11950
|
headers,
|
|
@@ -11588,14 +11955,14 @@ class Client$1 {
|
|
|
11588
11955
|
});
|
|
11589
11956
|
}),
|
|
11590
11957
|
/**
|
|
11591
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11958
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=update&version=v1 click to debug }
|
|
11592
11959
|
*/
|
|
11593
|
-
|
|
11960
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11594
11961
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11595
11962
|
return httpInstance
|
|
11596
11963
|
.request({
|
|
11597
11964
|
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`, path),
|
|
11598
|
-
method: "
|
|
11965
|
+
method: "PUT",
|
|
11599
11966
|
data,
|
|
11600
11967
|
params,
|
|
11601
11968
|
headers,
|
|
@@ -11606,14 +11973,14 @@ class Client$1 {
|
|
|
11606
11973
|
});
|
|
11607
11974
|
}),
|
|
11608
11975
|
/**
|
|
11609
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=
|
|
11976
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve&apiName=apply&version=v1 click to debug }
|
|
11610
11977
|
*/
|
|
11611
|
-
|
|
11978
|
+
apply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11612
11979
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11613
11980
|
return httpInstance
|
|
11614
11981
|
.request({
|
|
11615
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves
|
|
11616
|
-
method: "
|
|
11982
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserves/apply`, path),
|
|
11983
|
+
method: "POST",
|
|
11617
11984
|
data,
|
|
11618
11985
|
params,
|
|
11619
11986
|
headers,
|
|
@@ -11990,24 +12357,6 @@ class Client$1 {
|
|
|
11990
12357
|
throw e;
|
|
11991
12358
|
});
|
|
11992
12359
|
}),
|
|
11993
|
-
/**
|
|
11994
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=resource_reservation_list&version=v1 click to debug }
|
|
11995
|
-
*/
|
|
11996
|
-
resourceReservationList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11997
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11998
|
-
return httpInstance
|
|
11999
|
-
.request({
|
|
12000
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`, path),
|
|
12001
|
-
method: "POST",
|
|
12002
|
-
data,
|
|
12003
|
-
params,
|
|
12004
|
-
headers,
|
|
12005
|
-
})
|
|
12006
|
-
.catch((e) => {
|
|
12007
|
-
this.logger.error(formatErrors(e));
|
|
12008
|
-
throw e;
|
|
12009
|
-
});
|
|
12010
|
-
}),
|
|
12011
12360
|
/**
|
|
12012
12361
|
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=participant_list&version=v1 click to debug }
|
|
12013
12362
|
*/
|
|
@@ -12303,12 +12652,196 @@ class Client$1 {
|
|
|
12303
12652
|
/**
|
|
12304
12653
|
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=list&version=v2 click to debug }
|
|
12305
12654
|
*/
|
|
12306
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12655
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12656
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12657
|
+
return httpInstance
|
|
12658
|
+
.request({
|
|
12659
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`, path),
|
|
12660
|
+
method: "GET",
|
|
12661
|
+
data,
|
|
12662
|
+
params,
|
|
12663
|
+
headers,
|
|
12664
|
+
})
|
|
12665
|
+
.catch((e) => {
|
|
12666
|
+
this.logger.error(formatErrors(e));
|
|
12667
|
+
throw e;
|
|
12668
|
+
});
|
|
12669
|
+
}),
|
|
12670
|
+
/**
|
|
12671
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=create&version=v2 click to debug }
|
|
12672
|
+
*/
|
|
12673
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12674
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12675
|
+
return httpInstance
|
|
12676
|
+
.request({
|
|
12677
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`, path),
|
|
12678
|
+
method: "POST",
|
|
12679
|
+
data,
|
|
12680
|
+
params,
|
|
12681
|
+
headers,
|
|
12682
|
+
})
|
|
12683
|
+
.catch((e) => {
|
|
12684
|
+
this.logger.error(formatErrors(e));
|
|
12685
|
+
throw e;
|
|
12686
|
+
});
|
|
12687
|
+
}),
|
|
12688
|
+
/**
|
|
12689
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=copy&version=v2 click to debug }
|
|
12690
|
+
*/
|
|
12691
|
+
copy: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12692
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12693
|
+
return httpInstance
|
|
12694
|
+
.request({
|
|
12695
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`, path),
|
|
12696
|
+
method: "POST",
|
|
12697
|
+
data,
|
|
12698
|
+
params,
|
|
12699
|
+
headers,
|
|
12700
|
+
})
|
|
12701
|
+
.catch((e) => {
|
|
12702
|
+
this.logger.error(formatErrors(e));
|
|
12703
|
+
throw e;
|
|
12704
|
+
});
|
|
12705
|
+
}),
|
|
12706
|
+
/**
|
|
12707
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=space.node&apiName=update_title&version=v2 click to debug }
|
|
12708
|
+
*/
|
|
12709
|
+
updateTitle: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12710
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12711
|
+
return httpInstance
|
|
12712
|
+
.request({
|
|
12713
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`, path),
|
|
12714
|
+
method: "POST",
|
|
12715
|
+
data,
|
|
12716
|
+
params,
|
|
12717
|
+
headers,
|
|
12718
|
+
})
|
|
12719
|
+
.catch((e) => {
|
|
12720
|
+
this.logger.error(formatErrors(e));
|
|
12721
|
+
throw e;
|
|
12722
|
+
});
|
|
12723
|
+
}),
|
|
12724
|
+
},
|
|
12725
|
+
task: {
|
|
12726
|
+
/**
|
|
12727
|
+
* {@link https://open.feishu.cn/api-explorer?project=wiki&resource=task&apiName=get&version=v2 click to debug }
|
|
12728
|
+
*/
|
|
12729
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12730
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12731
|
+
return httpInstance
|
|
12732
|
+
.request({
|
|
12733
|
+
url: fillApiPath(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`, path),
|
|
12734
|
+
method: "GET",
|
|
12735
|
+
data,
|
|
12736
|
+
params,
|
|
12737
|
+
headers,
|
|
12738
|
+
})
|
|
12739
|
+
.catch((e) => {
|
|
12740
|
+
this.logger.error(formatErrors(e));
|
|
12741
|
+
throw e;
|
|
12742
|
+
});
|
|
12743
|
+
}),
|
|
12744
|
+
},
|
|
12745
|
+
};
|
|
12746
|
+
this.workplace = {};
|
|
12747
|
+
this.bitable = {
|
|
12748
|
+
appTableField: {
|
|
12749
|
+
/**
|
|
12750
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=list&version=v1 click to debug }
|
|
12751
|
+
*/
|
|
12752
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12753
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12754
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12755
|
+
const res = yield httpInstance
|
|
12756
|
+
.request({
|
|
12757
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`, path),
|
|
12758
|
+
method: "GET",
|
|
12759
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12760
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
12761
|
+
})
|
|
12762
|
+
.catch((e) => {
|
|
12763
|
+
this.logger.error(formatErrors(e));
|
|
12764
|
+
});
|
|
12765
|
+
return res;
|
|
12766
|
+
});
|
|
12767
|
+
const Iterable = {
|
|
12768
|
+
[Symbol.asyncIterator]() {
|
|
12769
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12770
|
+
let hasMore = true;
|
|
12771
|
+
let pageToken;
|
|
12772
|
+
while (hasMore) {
|
|
12773
|
+
try {
|
|
12774
|
+
const res = yield __await(sendRequest({
|
|
12775
|
+
headers,
|
|
12776
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12777
|
+
data,
|
|
12778
|
+
}));
|
|
12779
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
12780
|
+
// @ts-ignore
|
|
12781
|
+
has_more,
|
|
12782
|
+
// @ts-ignore
|
|
12783
|
+
page_token,
|
|
12784
|
+
// @ts-ignore
|
|
12785
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12786
|
+
yield yield __await(rest);
|
|
12787
|
+
hasMore = Boolean(has_more);
|
|
12788
|
+
pageToken = page_token || next_page_token;
|
|
12789
|
+
}
|
|
12790
|
+
catch (e) {
|
|
12791
|
+
yield yield __await(null);
|
|
12792
|
+
break;
|
|
12793
|
+
}
|
|
12794
|
+
}
|
|
12795
|
+
});
|
|
12796
|
+
},
|
|
12797
|
+
};
|
|
12798
|
+
return Iterable;
|
|
12799
|
+
}),
|
|
12800
|
+
/**
|
|
12801
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=list&version=v1 click to debug }
|
|
12802
|
+
*/
|
|
12803
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12804
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12805
|
+
return httpInstance
|
|
12806
|
+
.request({
|
|
12807
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`, path),
|
|
12808
|
+
method: "GET",
|
|
12809
|
+
data,
|
|
12810
|
+
params,
|
|
12811
|
+
headers,
|
|
12812
|
+
})
|
|
12813
|
+
.catch((e) => {
|
|
12814
|
+
this.logger.error(formatErrors(e));
|
|
12815
|
+
throw e;
|
|
12816
|
+
});
|
|
12817
|
+
}),
|
|
12818
|
+
/**
|
|
12819
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=update&version=v1 click to debug }
|
|
12820
|
+
*/
|
|
12821
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12822
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12823
|
+
return httpInstance
|
|
12824
|
+
.request({
|
|
12825
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`, path),
|
|
12826
|
+
method: "PUT",
|
|
12827
|
+
data,
|
|
12828
|
+
params,
|
|
12829
|
+
headers,
|
|
12830
|
+
})
|
|
12831
|
+
.catch((e) => {
|
|
12832
|
+
this.logger.error(formatErrors(e));
|
|
12833
|
+
throw e;
|
|
12834
|
+
});
|
|
12835
|
+
}),
|
|
12836
|
+
/**
|
|
12837
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=create&version=v1 click to debug }
|
|
12838
|
+
*/
|
|
12839
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12307
12840
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12308
12841
|
return httpInstance
|
|
12309
12842
|
.request({
|
|
12310
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12311
|
-
method: "
|
|
12843
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`, path),
|
|
12844
|
+
method: "POST",
|
|
12312
12845
|
data,
|
|
12313
12846
|
params,
|
|
12314
12847
|
headers,
|
|
@@ -12319,14 +12852,14 @@ class Client$1 {
|
|
|
12319
12852
|
});
|
|
12320
12853
|
}),
|
|
12321
12854
|
/**
|
|
12322
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12855
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.field&apiName=delete&version=v1 click to debug }
|
|
12323
12856
|
*/
|
|
12324
|
-
|
|
12857
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12325
12858
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12326
12859
|
return httpInstance
|
|
12327
12860
|
.request({
|
|
12328
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12329
|
-
method: "
|
|
12861
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`, path),
|
|
12862
|
+
method: "DELETE",
|
|
12330
12863
|
data,
|
|
12331
12864
|
params,
|
|
12332
12865
|
headers,
|
|
@@ -12336,15 +12869,17 @@ class Client$1 {
|
|
|
12336
12869
|
throw e;
|
|
12337
12870
|
});
|
|
12338
12871
|
}),
|
|
12872
|
+
},
|
|
12873
|
+
appTableForm: {
|
|
12339
12874
|
/**
|
|
12340
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12875
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=patch&version=v1 click to debug }
|
|
12341
12876
|
*/
|
|
12342
|
-
|
|
12877
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12343
12878
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12344
12879
|
return httpInstance
|
|
12345
12880
|
.request({
|
|
12346
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12347
|
-
method: "
|
|
12881
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
12882
|
+
method: "PATCH",
|
|
12348
12883
|
data,
|
|
12349
12884
|
params,
|
|
12350
12885
|
headers,
|
|
@@ -12355,14 +12890,14 @@ class Client$1 {
|
|
|
12355
12890
|
});
|
|
12356
12891
|
}),
|
|
12357
12892
|
/**
|
|
12358
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12893
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=get&version=v1 click to debug }
|
|
12359
12894
|
*/
|
|
12360
|
-
|
|
12895
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12361
12896
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12362
12897
|
return httpInstance
|
|
12363
12898
|
.request({
|
|
12364
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12365
|
-
method: "
|
|
12899
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
12900
|
+
method: "GET",
|
|
12366
12901
|
data,
|
|
12367
12902
|
params,
|
|
12368
12903
|
headers,
|
|
@@ -12373,16 +12908,16 @@ class Client$1 {
|
|
|
12373
12908
|
});
|
|
12374
12909
|
}),
|
|
12375
12910
|
},
|
|
12376
|
-
|
|
12911
|
+
app: {
|
|
12377
12912
|
/**
|
|
12378
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
12913
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
12379
12914
|
*/
|
|
12380
|
-
|
|
12915
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12381
12916
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12382
12917
|
return httpInstance
|
|
12383
12918
|
.request({
|
|
12384
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
12385
|
-
method: "
|
|
12919
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12920
|
+
method: "PUT",
|
|
12386
12921
|
data,
|
|
12387
12922
|
params,
|
|
12388
12923
|
headers,
|
|
@@ -12392,20 +12927,15 @@ class Client$1 {
|
|
|
12392
12927
|
throw e;
|
|
12393
12928
|
});
|
|
12394
12929
|
}),
|
|
12395
|
-
},
|
|
12396
|
-
};
|
|
12397
|
-
this.workplace = {};
|
|
12398
|
-
this.bitable = {
|
|
12399
|
-
appTableField: {
|
|
12400
12930
|
/**
|
|
12401
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app
|
|
12931
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
12402
12932
|
*/
|
|
12403
|
-
|
|
12933
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12404
12934
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12405
12935
|
return httpInstance
|
|
12406
12936
|
.request({
|
|
12407
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token
|
|
12408
|
-
method: "
|
|
12937
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12938
|
+
method: "GET",
|
|
12409
12939
|
data,
|
|
12410
12940
|
params,
|
|
12411
12941
|
headers,
|
|
@@ -12415,15 +12945,17 @@ class Client$1 {
|
|
|
12415
12945
|
throw e;
|
|
12416
12946
|
});
|
|
12417
12947
|
}),
|
|
12948
|
+
},
|
|
12949
|
+
appRole: {
|
|
12418
12950
|
/**
|
|
12419
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12951
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12420
12952
|
*/
|
|
12421
12953
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12422
12954
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12423
12955
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12424
12956
|
const res = yield httpInstance
|
|
12425
12957
|
.request({
|
|
12426
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12958
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12427
12959
|
method: "GET",
|
|
12428
12960
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12429
12961
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -12467,13 +12999,13 @@ class Client$1 {
|
|
|
12467
12999
|
return Iterable;
|
|
12468
13000
|
}),
|
|
12469
13001
|
/**
|
|
12470
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13002
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12471
13003
|
*/
|
|
12472
13004
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12473
13005
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12474
13006
|
return httpInstance
|
|
12475
13007
|
.request({
|
|
12476
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13008
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12477
13009
|
method: "GET",
|
|
12478
13010
|
data,
|
|
12479
13011
|
params,
|
|
@@ -12485,14 +13017,14 @@ class Client$1 {
|
|
|
12485
13017
|
});
|
|
12486
13018
|
}),
|
|
12487
13019
|
/**
|
|
12488
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13020
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=delete&version=v1 click to debug }
|
|
12489
13021
|
*/
|
|
12490
|
-
|
|
13022
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12491
13023
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12492
13024
|
return httpInstance
|
|
12493
13025
|
.request({
|
|
12494
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12495
|
-
method: "
|
|
13026
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
|
|
13027
|
+
method: "DELETE",
|
|
12496
13028
|
data,
|
|
12497
13029
|
params,
|
|
12498
13030
|
headers,
|
|
@@ -12503,14 +13035,14 @@ class Client$1 {
|
|
|
12503
13035
|
});
|
|
12504
13036
|
}),
|
|
12505
13037
|
/**
|
|
12506
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13038
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=update&version=v1 click to debug }
|
|
12507
13039
|
*/
|
|
12508
|
-
|
|
13040
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12509
13041
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12510
13042
|
return httpInstance
|
|
12511
13043
|
.request({
|
|
12512
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12513
|
-
method: "
|
|
13044
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
|
|
13045
|
+
method: "PUT",
|
|
12514
13046
|
data,
|
|
12515
13047
|
params,
|
|
12516
13048
|
headers,
|
|
@@ -12520,16 +13052,14 @@ class Client$1 {
|
|
|
12520
13052
|
throw e;
|
|
12521
13053
|
});
|
|
12522
13054
|
}),
|
|
12523
|
-
},
|
|
12524
|
-
appTable: {
|
|
12525
13055
|
/**
|
|
12526
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13056
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=create&version=v1 click to debug }
|
|
12527
13057
|
*/
|
|
12528
|
-
|
|
13058
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12529
13059
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12530
13060
|
return httpInstance
|
|
12531
13061
|
.request({
|
|
12532
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13062
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12533
13063
|
method: "POST",
|
|
12534
13064
|
data,
|
|
12535
13065
|
params,
|
|
@@ -12540,14 +13070,16 @@ class Client$1 {
|
|
|
12540
13070
|
throw e;
|
|
12541
13071
|
});
|
|
12542
13072
|
}),
|
|
13073
|
+
},
|
|
13074
|
+
appRoleMember: {
|
|
12543
13075
|
/**
|
|
12544
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13076
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=delete&version=v1 click to debug }
|
|
12545
13077
|
*/
|
|
12546
13078
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12547
13079
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12548
13080
|
return httpInstance
|
|
12549
13081
|
.request({
|
|
12550
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13082
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`, path),
|
|
12551
13083
|
method: "DELETE",
|
|
12552
13084
|
data,
|
|
12553
13085
|
params,
|
|
@@ -12559,14 +13091,14 @@ class Client$1 {
|
|
|
12559
13091
|
});
|
|
12560
13092
|
}),
|
|
12561
13093
|
/**
|
|
12562
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13094
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
|
|
12563
13095
|
*/
|
|
12564
13096
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12565
13097
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12566
13098
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12567
13099
|
const res = yield httpInstance
|
|
12568
13100
|
.request({
|
|
12569
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13101
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12570
13102
|
method: "GET",
|
|
12571
13103
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12572
13104
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -12610,13 +13142,13 @@ class Client$1 {
|
|
|
12610
13142
|
return Iterable;
|
|
12611
13143
|
}),
|
|
12612
13144
|
/**
|
|
12613
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13145
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
|
|
12614
13146
|
*/
|
|
12615
13147
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12616
13148
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12617
13149
|
return httpInstance
|
|
12618
13150
|
.request({
|
|
12619
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13151
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12620
13152
|
method: "GET",
|
|
12621
13153
|
data,
|
|
12622
13154
|
params,
|
|
@@ -12628,13 +13160,31 @@ class Client$1 {
|
|
|
12628
13160
|
});
|
|
12629
13161
|
}),
|
|
12630
13162
|
/**
|
|
12631
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13163
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=create&version=v1 click to debug }
|
|
13164
|
+
*/
|
|
13165
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13166
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13167
|
+
return httpInstance
|
|
13168
|
+
.request({
|
|
13169
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
13170
|
+
method: "POST",
|
|
13171
|
+
data,
|
|
13172
|
+
params,
|
|
13173
|
+
headers,
|
|
13174
|
+
})
|
|
13175
|
+
.catch((e) => {
|
|
13176
|
+
this.logger.error(formatErrors(e));
|
|
13177
|
+
throw e;
|
|
13178
|
+
});
|
|
13179
|
+
}),
|
|
13180
|
+
/**
|
|
13181
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_create&version=v1 click to debug }
|
|
12632
13182
|
*/
|
|
12633
13183
|
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12634
13184
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12635
13185
|
return httpInstance
|
|
12636
13186
|
.request({
|
|
12637
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13187
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`, path),
|
|
12638
13188
|
method: "POST",
|
|
12639
13189
|
data,
|
|
12640
13190
|
params,
|
|
@@ -12646,13 +13196,13 @@ class Client$1 {
|
|
|
12646
13196
|
});
|
|
12647
13197
|
}),
|
|
12648
13198
|
/**
|
|
12649
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13199
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_delete&version=v1 click to debug }
|
|
12650
13200
|
*/
|
|
12651
|
-
|
|
13201
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12652
13202
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12653
13203
|
return httpInstance
|
|
12654
13204
|
.request({
|
|
12655
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13205
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`, path),
|
|
12656
13206
|
method: "POST",
|
|
12657
13207
|
data,
|
|
12658
13208
|
params,
|
|
@@ -12664,16 +13214,16 @@ class Client$1 {
|
|
|
12664
13214
|
});
|
|
12665
13215
|
}),
|
|
12666
13216
|
},
|
|
12667
|
-
|
|
13217
|
+
appTableRecord: {
|
|
12668
13218
|
/**
|
|
12669
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13219
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
|
|
12670
13220
|
*/
|
|
12671
13221
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12672
13222
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12673
13223
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12674
13224
|
const res = yield httpInstance
|
|
12675
13225
|
.request({
|
|
12676
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13226
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
12677
13227
|
method: "GET",
|
|
12678
13228
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12679
13229
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -12717,13 +13267,13 @@ class Client$1 {
|
|
|
12717
13267
|
return Iterable;
|
|
12718
13268
|
}),
|
|
12719
13269
|
/**
|
|
12720
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13270
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
|
|
12721
13271
|
*/
|
|
12722
13272
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12723
13273
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12724
13274
|
return httpInstance
|
|
12725
13275
|
.request({
|
|
12726
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13276
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
12727
13277
|
method: "GET",
|
|
12728
13278
|
data,
|
|
12729
13279
|
params,
|
|
@@ -12735,51 +13285,13 @@ class Client$1 {
|
|
|
12735
13285
|
});
|
|
12736
13286
|
}),
|
|
12737
13287
|
/**
|
|
12738
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
12739
|
-
*/
|
|
12740
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12741
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12742
|
-
return httpInstance
|
|
12743
|
-
.request({
|
|
12744
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
|
|
12745
|
-
method: "DELETE",
|
|
12746
|
-
data,
|
|
12747
|
-
params,
|
|
12748
|
-
headers,
|
|
12749
|
-
})
|
|
12750
|
-
.catch((e) => {
|
|
12751
|
-
this.logger.error(formatErrors(e));
|
|
12752
|
-
throw e;
|
|
12753
|
-
});
|
|
12754
|
-
}),
|
|
12755
|
-
/**
|
|
12756
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
|
|
12757
|
-
*/
|
|
12758
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12759
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12760
|
-
return httpInstance
|
|
12761
|
-
.request({
|
|
12762
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
12763
|
-
method: "POST",
|
|
12764
|
-
data,
|
|
12765
|
-
params,
|
|
12766
|
-
headers,
|
|
12767
|
-
})
|
|
12768
|
-
.catch((e) => {
|
|
12769
|
-
this.logger.error(formatErrors(e));
|
|
12770
|
-
throw e;
|
|
12771
|
-
});
|
|
12772
|
-
}),
|
|
12773
|
-
},
|
|
12774
|
-
app: {
|
|
12775
|
-
/**
|
|
12776
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
13288
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
|
|
12777
13289
|
*/
|
|
12778
13290
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12779
13291
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12780
13292
|
return httpInstance
|
|
12781
13293
|
.request({
|
|
12782
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
13294
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
12783
13295
|
method: "GET",
|
|
12784
13296
|
data,
|
|
12785
13297
|
params,
|
|
@@ -12791,13 +13303,13 @@ class Client$1 {
|
|
|
12791
13303
|
});
|
|
12792
13304
|
}),
|
|
12793
13305
|
/**
|
|
12794
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
13306
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
12795
13307
|
*/
|
|
12796
13308
|
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12797
13309
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12798
13310
|
return httpInstance
|
|
12799
13311
|
.request({
|
|
12800
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
13312
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
12801
13313
|
method: "PUT",
|
|
12802
13314
|
data,
|
|
12803
13315
|
params,
|
|
@@ -12808,86 +13320,33 @@ class Client$1 {
|
|
|
12808
13320
|
throw e;
|
|
12809
13321
|
});
|
|
12810
13322
|
}),
|
|
12811
|
-
},
|
|
12812
|
-
appRole: {
|
|
12813
13323
|
/**
|
|
12814
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13324
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_update&version=v1 click to debug }
|
|
12815
13325
|
*/
|
|
12816
|
-
|
|
13326
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12817
13327
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12818
13328
|
return httpInstance
|
|
12819
13329
|
.request({
|
|
12820
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12821
|
-
method: "
|
|
12822
|
-
data,
|
|
12823
|
-
params,
|
|
12824
|
-
headers,
|
|
12825
|
-
})
|
|
12826
|
-
.catch((e) => {
|
|
12827
|
-
this.logger.error(formatErrors(e));
|
|
12828
|
-
throw e;
|
|
12829
|
-
});
|
|
12830
|
-
}),
|
|
12831
|
-
/**
|
|
12832
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12833
|
-
*/
|
|
12834
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12835
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12836
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12837
|
-
const res = yield httpInstance
|
|
12838
|
-
.request({
|
|
12839
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12840
|
-
method: "GET",
|
|
12841
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12842
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
12843
|
-
})
|
|
12844
|
-
.catch((e) => {
|
|
12845
|
-
this.logger.error(formatErrors(e));
|
|
12846
|
-
});
|
|
12847
|
-
return res;
|
|
12848
|
-
});
|
|
12849
|
-
const Iterable = {
|
|
12850
|
-
[Symbol.asyncIterator]() {
|
|
12851
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
12852
|
-
let hasMore = true;
|
|
12853
|
-
let pageToken;
|
|
12854
|
-
while (hasMore) {
|
|
12855
|
-
try {
|
|
12856
|
-
const res = yield __await(sendRequest({
|
|
12857
|
-
headers,
|
|
12858
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12859
|
-
data,
|
|
12860
|
-
}));
|
|
12861
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
12862
|
-
// @ts-ignore
|
|
12863
|
-
has_more,
|
|
12864
|
-
// @ts-ignore
|
|
12865
|
-
page_token,
|
|
12866
|
-
// @ts-ignore
|
|
12867
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12868
|
-
yield yield __await(rest);
|
|
12869
|
-
hasMore = Boolean(has_more);
|
|
12870
|
-
pageToken = page_token || next_page_token;
|
|
12871
|
-
}
|
|
12872
|
-
catch (e) {
|
|
12873
|
-
yield yield __await(null);
|
|
12874
|
-
break;
|
|
12875
|
-
}
|
|
12876
|
-
}
|
|
12877
|
-
});
|
|
12878
|
-
},
|
|
12879
|
-
};
|
|
12880
|
-
return Iterable;
|
|
13330
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`, path),
|
|
13331
|
+
method: "POST",
|
|
13332
|
+
data,
|
|
13333
|
+
params,
|
|
13334
|
+
headers,
|
|
13335
|
+
})
|
|
13336
|
+
.catch((e) => {
|
|
13337
|
+
this.logger.error(formatErrors(e));
|
|
13338
|
+
throw e;
|
|
13339
|
+
});
|
|
12881
13340
|
}),
|
|
12882
13341
|
/**
|
|
12883
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13342
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
|
|
12884
13343
|
*/
|
|
12885
|
-
|
|
13344
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12886
13345
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12887
13346
|
return httpInstance
|
|
12888
13347
|
.request({
|
|
12889
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12890
|
-
method: "
|
|
13348
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13349
|
+
method: "DELETE",
|
|
12891
13350
|
data,
|
|
12892
13351
|
params,
|
|
12893
13352
|
headers,
|
|
@@ -12898,14 +13357,14 @@ class Client$1 {
|
|
|
12898
13357
|
});
|
|
12899
13358
|
}),
|
|
12900
13359
|
/**
|
|
12901
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13360
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
|
|
12902
13361
|
*/
|
|
12903
|
-
|
|
13362
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12904
13363
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12905
13364
|
return httpInstance
|
|
12906
13365
|
.request({
|
|
12907
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12908
|
-
method: "
|
|
13366
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13367
|
+
method: "POST",
|
|
12909
13368
|
data,
|
|
12910
13369
|
params,
|
|
12911
13370
|
headers,
|
|
@@ -12916,13 +13375,13 @@ class Client$1 {
|
|
|
12916
13375
|
});
|
|
12917
13376
|
}),
|
|
12918
13377
|
/**
|
|
12919
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13378
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
|
|
12920
13379
|
*/
|
|
12921
|
-
|
|
13380
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12922
13381
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12923
13382
|
return httpInstance
|
|
12924
13383
|
.request({
|
|
12925
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13384
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
|
|
12926
13385
|
method: "POST",
|
|
12927
13386
|
data,
|
|
12928
13387
|
params,
|
|
@@ -12933,17 +13392,15 @@ class Client$1 {
|
|
|
12933
13392
|
throw e;
|
|
12934
13393
|
});
|
|
12935
13394
|
}),
|
|
12936
|
-
},
|
|
12937
|
-
appRoleMember: {
|
|
12938
13395
|
/**
|
|
12939
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13396
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
|
|
12940
13397
|
*/
|
|
12941
|
-
|
|
13398
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12942
13399
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12943
13400
|
return httpInstance
|
|
12944
13401
|
.request({
|
|
12945
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12946
|
-
method: "
|
|
13402
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
|
|
13403
|
+
method: "POST",
|
|
12947
13404
|
data,
|
|
12948
13405
|
params,
|
|
12949
13406
|
headers,
|
|
@@ -12953,14 +13410,16 @@ class Client$1 {
|
|
|
12953
13410
|
throw e;
|
|
12954
13411
|
});
|
|
12955
13412
|
}),
|
|
13413
|
+
},
|
|
13414
|
+
appTable: {
|
|
12956
13415
|
/**
|
|
12957
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13416
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_delete&version=v1 click to debug }
|
|
12958
13417
|
*/
|
|
12959
|
-
|
|
13418
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12960
13419
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12961
13420
|
return httpInstance
|
|
12962
13421
|
.request({
|
|
12963
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13422
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`, path),
|
|
12964
13423
|
method: "POST",
|
|
12965
13424
|
data,
|
|
12966
13425
|
params,
|
|
@@ -12972,14 +13431,32 @@ class Client$1 {
|
|
|
12972
13431
|
});
|
|
12973
13432
|
}),
|
|
12974
13433
|
/**
|
|
12975
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13434
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=delete&version=v1 click to debug }
|
|
13435
|
+
*/
|
|
13436
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13437
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13438
|
+
return httpInstance
|
|
13439
|
+
.request({
|
|
13440
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`, path),
|
|
13441
|
+
method: "DELETE",
|
|
13442
|
+
data,
|
|
13443
|
+
params,
|
|
13444
|
+
headers,
|
|
13445
|
+
})
|
|
13446
|
+
.catch((e) => {
|
|
13447
|
+
this.logger.error(formatErrors(e));
|
|
13448
|
+
throw e;
|
|
13449
|
+
});
|
|
13450
|
+
}),
|
|
13451
|
+
/**
|
|
13452
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
|
|
12976
13453
|
*/
|
|
12977
13454
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12978
13455
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12979
13456
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12980
13457
|
const res = yield httpInstance
|
|
12981
13458
|
.request({
|
|
12982
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13459
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
12983
13460
|
method: "GET",
|
|
12984
13461
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12985
13462
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -13023,13 +13500,13 @@ class Client$1 {
|
|
|
13023
13500
|
return Iterable;
|
|
13024
13501
|
}),
|
|
13025
13502
|
/**
|
|
13026
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13503
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
|
|
13027
13504
|
*/
|
|
13028
13505
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13029
13506
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13030
13507
|
return httpInstance
|
|
13031
13508
|
.request({
|
|
13032
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13509
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
13033
13510
|
method: "GET",
|
|
13034
13511
|
data,
|
|
13035
13512
|
params,
|
|
@@ -13041,13 +13518,13 @@ class Client$1 {
|
|
|
13041
13518
|
});
|
|
13042
13519
|
}),
|
|
13043
13520
|
/**
|
|
13044
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13521
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_create&version=v1 click to debug }
|
|
13045
13522
|
*/
|
|
13046
13523
|
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13047
13524
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13048
13525
|
return httpInstance
|
|
13049
13526
|
.request({
|
|
13050
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13527
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`, path),
|
|
13051
13528
|
method: "POST",
|
|
13052
13529
|
data,
|
|
13053
13530
|
params,
|
|
@@ -13059,13 +13536,13 @@ class Client$1 {
|
|
|
13059
13536
|
});
|
|
13060
13537
|
}),
|
|
13061
13538
|
/**
|
|
13062
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13539
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=create&version=v1 click to debug }
|
|
13063
13540
|
*/
|
|
13064
|
-
|
|
13541
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13065
13542
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13066
13543
|
return httpInstance
|
|
13067
13544
|
.request({
|
|
13068
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13545
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
13069
13546
|
method: "POST",
|
|
13070
13547
|
data,
|
|
13071
13548
|
params,
|
|
@@ -13077,34 +13554,16 @@ class Client$1 {
|
|
|
13077
13554
|
});
|
|
13078
13555
|
}),
|
|
13079
13556
|
},
|
|
13080
|
-
|
|
13081
|
-
/**
|
|
13082
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
|
|
13083
|
-
*/
|
|
13084
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13085
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13086
|
-
return httpInstance
|
|
13087
|
-
.request({
|
|
13088
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
|
|
13089
|
-
method: "PATCH",
|
|
13090
|
-
data,
|
|
13091
|
-
params,
|
|
13092
|
-
headers,
|
|
13093
|
-
})
|
|
13094
|
-
.catch((e) => {
|
|
13095
|
-
this.logger.error(formatErrors(e));
|
|
13096
|
-
throw e;
|
|
13097
|
-
});
|
|
13098
|
-
}),
|
|
13557
|
+
appTableView: {
|
|
13099
13558
|
/**
|
|
13100
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13559
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
|
|
13101
13560
|
*/
|
|
13102
13561
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13103
13562
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13104
13563
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13105
13564
|
const res = yield httpInstance
|
|
13106
13565
|
.request({
|
|
13107
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13566
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
13108
13567
|
method: "GET",
|
|
13109
13568
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
13110
13569
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -13148,13 +13607,13 @@ class Client$1 {
|
|
|
13148
13607
|
return Iterable;
|
|
13149
13608
|
}),
|
|
13150
13609
|
/**
|
|
13151
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13610
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
|
|
13152
13611
|
*/
|
|
13153
13612
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13154
13613
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13155
13614
|
return httpInstance
|
|
13156
13615
|
.request({
|
|
13157
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13616
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
13158
13617
|
method: "GET",
|
|
13159
13618
|
data,
|
|
13160
13619
|
params,
|
|
@@ -13165,17 +13624,15 @@ class Client$1 {
|
|
|
13165
13624
|
throw e;
|
|
13166
13625
|
});
|
|
13167
13626
|
}),
|
|
13168
|
-
},
|
|
13169
|
-
appTableForm: {
|
|
13170
13627
|
/**
|
|
13171
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13628
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=delete&version=v1 click to debug }
|
|
13172
13629
|
*/
|
|
13173
|
-
|
|
13630
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13174
13631
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13175
13632
|
return httpInstance
|
|
13176
13633
|
.request({
|
|
13177
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13178
|
-
method: "
|
|
13634
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
|
|
13635
|
+
method: "DELETE",
|
|
13179
13636
|
data,
|
|
13180
13637
|
params,
|
|
13181
13638
|
headers,
|
|
@@ -13186,14 +13643,14 @@ class Client$1 {
|
|
|
13186
13643
|
});
|
|
13187
13644
|
}),
|
|
13188
13645
|
/**
|
|
13189
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13646
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
|
|
13190
13647
|
*/
|
|
13191
|
-
|
|
13648
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13192
13649
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13193
13650
|
return httpInstance
|
|
13194
13651
|
.request({
|
|
13195
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13196
|
-
method: "
|
|
13652
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
13653
|
+
method: "POST",
|
|
13197
13654
|
data,
|
|
13198
13655
|
params,
|
|
13199
13656
|
headers,
|
|
@@ -13204,52 +13661,16 @@ class Client$1 {
|
|
|
13204
13661
|
});
|
|
13205
13662
|
}),
|
|
13206
13663
|
},
|
|
13207
|
-
|
|
13208
|
-
/**
|
|
13209
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
|
|
13210
|
-
*/
|
|
13211
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13212
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13213
|
-
return httpInstance
|
|
13214
|
-
.request({
|
|
13215
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13216
|
-
method: "GET",
|
|
13217
|
-
data,
|
|
13218
|
-
params,
|
|
13219
|
-
headers,
|
|
13220
|
-
})
|
|
13221
|
-
.catch((e) => {
|
|
13222
|
-
this.logger.error(formatErrors(e));
|
|
13223
|
-
throw e;
|
|
13224
|
-
});
|
|
13225
|
-
}),
|
|
13226
|
-
/**
|
|
13227
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
13228
|
-
*/
|
|
13229
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13230
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13231
|
-
return httpInstance
|
|
13232
|
-
.request({
|
|
13233
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13234
|
-
method: "PUT",
|
|
13235
|
-
data,
|
|
13236
|
-
params,
|
|
13237
|
-
headers,
|
|
13238
|
-
})
|
|
13239
|
-
.catch((e) => {
|
|
13240
|
-
this.logger.error(formatErrors(e));
|
|
13241
|
-
throw e;
|
|
13242
|
-
});
|
|
13243
|
-
}),
|
|
13664
|
+
appTableFormField: {
|
|
13244
13665
|
/**
|
|
13245
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13666
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
|
|
13246
13667
|
*/
|
|
13247
|
-
|
|
13668
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13248
13669
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13249
13670
|
return httpInstance
|
|
13250
13671
|
.request({
|
|
13251
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13252
|
-
method: "
|
|
13672
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
|
|
13673
|
+
method: "PATCH",
|
|
13253
13674
|
data,
|
|
13254
13675
|
params,
|
|
13255
13676
|
headers,
|
|
@@ -13260,14 +13681,14 @@ class Client$1 {
|
|
|
13260
13681
|
});
|
|
13261
13682
|
}),
|
|
13262
13683
|
/**
|
|
13263
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13684
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
|
|
13264
13685
|
*/
|
|
13265
13686
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13266
13687
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13267
13688
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13268
13689
|
const res = yield httpInstance
|
|
13269
13690
|
.request({
|
|
13270
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13691
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
|
|
13271
13692
|
method: "GET",
|
|
13272
13693
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
13273
13694
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -13311,13 +13732,13 @@ class Client$1 {
|
|
|
13311
13732
|
return Iterable;
|
|
13312
13733
|
}),
|
|
13313
13734
|
/**
|
|
13314
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13735
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
|
|
13315
13736
|
*/
|
|
13316
13737
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13317
13738
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13318
13739
|
return httpInstance
|
|
13319
13740
|
.request({
|
|
13320
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13741
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
|
|
13321
13742
|
method: "GET",
|
|
13322
13743
|
data,
|
|
13323
13744
|
params,
|
|
@@ -13328,78 +13749,6 @@ class Client$1 {
|
|
|
13328
13749
|
throw e;
|
|
13329
13750
|
});
|
|
13330
13751
|
}),
|
|
13331
|
-
/**
|
|
13332
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
|
|
13333
|
-
*/
|
|
13334
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13335
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13336
|
-
return httpInstance
|
|
13337
|
-
.request({
|
|
13338
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13339
|
-
method: "DELETE",
|
|
13340
|
-
data,
|
|
13341
|
-
params,
|
|
13342
|
-
headers,
|
|
13343
|
-
})
|
|
13344
|
-
.catch((e) => {
|
|
13345
|
-
this.logger.error(formatErrors(e));
|
|
13346
|
-
throw e;
|
|
13347
|
-
});
|
|
13348
|
-
}),
|
|
13349
|
-
/**
|
|
13350
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
|
|
13351
|
-
*/
|
|
13352
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13353
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13354
|
-
return httpInstance
|
|
13355
|
-
.request({
|
|
13356
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13357
|
-
method: "POST",
|
|
13358
|
-
data,
|
|
13359
|
-
params,
|
|
13360
|
-
headers,
|
|
13361
|
-
})
|
|
13362
|
-
.catch((e) => {
|
|
13363
|
-
this.logger.error(formatErrors(e));
|
|
13364
|
-
throw e;
|
|
13365
|
-
});
|
|
13366
|
-
}),
|
|
13367
|
-
/**
|
|
13368
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
|
|
13369
|
-
*/
|
|
13370
|
-
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13371
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13372
|
-
return httpInstance
|
|
13373
|
-
.request({
|
|
13374
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
|
|
13375
|
-
method: "POST",
|
|
13376
|
-
data,
|
|
13377
|
-
params,
|
|
13378
|
-
headers,
|
|
13379
|
-
})
|
|
13380
|
-
.catch((e) => {
|
|
13381
|
-
this.logger.error(formatErrors(e));
|
|
13382
|
-
throw e;
|
|
13383
|
-
});
|
|
13384
|
-
}),
|
|
13385
|
-
/**
|
|
13386
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
|
|
13387
|
-
*/
|
|
13388
|
-
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13389
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13390
|
-
return httpInstance
|
|
13391
|
-
.request({
|
|
13392
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
|
|
13393
|
-
method: "POST",
|
|
13394
|
-
data,
|
|
13395
|
-
params,
|
|
13396
|
-
headers,
|
|
13397
|
-
})
|
|
13398
|
-
.catch((e) => {
|
|
13399
|
-
this.logger.error(formatErrors(e));
|
|
13400
|
-
throw e;
|
|
13401
|
-
});
|
|
13402
|
-
}),
|
|
13403
13752
|
},
|
|
13404
13753
|
appDashboard: {
|
|
13405
13754
|
/**
|
|
@@ -13768,6 +14117,7 @@ class Client extends Client$1 {
|
|
|
13768
14117
|
}))
|
|
13769
14118
|
.catch((e) => {
|
|
13770
14119
|
this.logger.error(e);
|
|
14120
|
+
throw e;
|
|
13771
14121
|
});
|
|
13772
14122
|
return res;
|
|
13773
14123
|
});
|