@larksuiteoapi/node-sdk 1.16.0 → 1.16.1
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 +11 -11
- package/lib/index.js +11 -11
- package/package.json +1 -1
- package/types/index.d.ts +11 -11
package/es/index.js
CHANGED
|
@@ -436,7 +436,7 @@ class Client$1 {
|
|
|
436
436
|
this.logger.error(formatErrors(e));
|
|
437
437
|
throw e;
|
|
438
438
|
});
|
|
439
|
-
return get(res, "data",
|
|
439
|
+
return get(res, "data", null);
|
|
440
440
|
}),
|
|
441
441
|
},
|
|
442
442
|
/**
|
|
@@ -984,7 +984,7 @@ class Client$1 {
|
|
|
984
984
|
this.logger.error(formatErrors(e));
|
|
985
985
|
throw e;
|
|
986
986
|
});
|
|
987
|
-
return get(res, "data",
|
|
987
|
+
return get(res, "data", null);
|
|
988
988
|
}),
|
|
989
989
|
},
|
|
990
990
|
/**
|
|
@@ -2549,7 +2549,7 @@ class Client$1 {
|
|
|
2549
2549
|
this.logger.error(formatErrors(e));
|
|
2550
2550
|
throw e;
|
|
2551
2551
|
});
|
|
2552
|
-
return get(res, "data",
|
|
2552
|
+
return get(res, "data", null);
|
|
2553
2553
|
}),
|
|
2554
2554
|
},
|
|
2555
2555
|
/**
|
|
@@ -4071,7 +4071,7 @@ class Client$1 {
|
|
|
4071
4071
|
this.logger.error(formatErrors(e));
|
|
4072
4072
|
throw e;
|
|
4073
4073
|
});
|
|
4074
|
-
return get(res, "data",
|
|
4074
|
+
return get(res, "data", null);
|
|
4075
4075
|
}),
|
|
4076
4076
|
},
|
|
4077
4077
|
};
|
|
@@ -10052,7 +10052,7 @@ class Client$1 {
|
|
|
10052
10052
|
this.logger.error(formatErrors(e));
|
|
10053
10053
|
throw e;
|
|
10054
10054
|
});
|
|
10055
|
-
return get(res, "data",
|
|
10055
|
+
return get(res, "data", null);
|
|
10056
10056
|
}),
|
|
10057
10057
|
/**
|
|
10058
10058
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=upload_finish&version=v1 click to debug }
|
|
@@ -10105,7 +10105,7 @@ class Client$1 {
|
|
|
10105
10105
|
this.logger.error(formatErrors(e));
|
|
10106
10106
|
throw e;
|
|
10107
10107
|
});
|
|
10108
|
-
return get(res, "data",
|
|
10108
|
+
return get(res, "data", null);
|
|
10109
10109
|
}),
|
|
10110
10110
|
/**
|
|
10111
10111
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=upload_prepare&version=v1 click to debug }
|
|
@@ -10590,7 +10590,7 @@ class Client$1 {
|
|
|
10590
10590
|
this.logger.error(formatErrors(e));
|
|
10591
10591
|
throw e;
|
|
10592
10592
|
});
|
|
10593
|
-
return get(res, "data",
|
|
10593
|
+
return get(res, "data", null);
|
|
10594
10594
|
}),
|
|
10595
10595
|
/**
|
|
10596
10596
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_finish&version=v1 click to debug }
|
|
@@ -10643,7 +10643,7 @@ class Client$1 {
|
|
|
10643
10643
|
this.logger.error(formatErrors(e));
|
|
10644
10644
|
throw e;
|
|
10645
10645
|
});
|
|
10646
|
-
return get(res, "data",
|
|
10646
|
+
return get(res, "data", null);
|
|
10647
10647
|
}),
|
|
10648
10648
|
/**
|
|
10649
10649
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_prepare&version=v1 click to debug }
|
|
@@ -14953,7 +14953,7 @@ class Client$1 {
|
|
|
14953
14953
|
this.logger.error(formatErrors(e));
|
|
14954
14954
|
throw e;
|
|
14955
14955
|
});
|
|
14956
|
-
return get(res, "data",
|
|
14956
|
+
return get(res, "data", null);
|
|
14957
14957
|
}),
|
|
14958
14958
|
/**
|
|
14959
14959
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=file&apiName=get&version=v1 click to debug }
|
|
@@ -15026,7 +15026,7 @@ class Client$1 {
|
|
|
15026
15026
|
this.logger.error(formatErrors(e));
|
|
15027
15027
|
throw e;
|
|
15028
15028
|
});
|
|
15029
|
-
return get(res, "data",
|
|
15029
|
+
return get(res, "data", null);
|
|
15030
15030
|
}),
|
|
15031
15031
|
/**
|
|
15032
15032
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=image&apiName=get&version=v1 click to debug }
|
|
@@ -17134,7 +17134,7 @@ class Client$1 {
|
|
|
17134
17134
|
this.logger.error(formatErrors(e));
|
|
17135
17135
|
throw e;
|
|
17136
17136
|
});
|
|
17137
|
-
return get(res, "data",
|
|
17137
|
+
return get(res, "data", null);
|
|
17138
17138
|
}),
|
|
17139
17139
|
},
|
|
17140
17140
|
/**
|
package/lib/index.js
CHANGED
|
@@ -451,7 +451,7 @@ class Client$1 {
|
|
|
451
451
|
this.logger.error(formatErrors(e));
|
|
452
452
|
throw e;
|
|
453
453
|
});
|
|
454
|
-
return get__default["default"](res, "data",
|
|
454
|
+
return get__default["default"](res, "data", null);
|
|
455
455
|
}),
|
|
456
456
|
},
|
|
457
457
|
/**
|
|
@@ -999,7 +999,7 @@ class Client$1 {
|
|
|
999
999
|
this.logger.error(formatErrors(e));
|
|
1000
1000
|
throw e;
|
|
1001
1001
|
});
|
|
1002
|
-
return get__default["default"](res, "data",
|
|
1002
|
+
return get__default["default"](res, "data", null);
|
|
1003
1003
|
}),
|
|
1004
1004
|
},
|
|
1005
1005
|
/**
|
|
@@ -2564,7 +2564,7 @@ class Client$1 {
|
|
|
2564
2564
|
this.logger.error(formatErrors(e));
|
|
2565
2565
|
throw e;
|
|
2566
2566
|
});
|
|
2567
|
-
return get__default["default"](res, "data",
|
|
2567
|
+
return get__default["default"](res, "data", null);
|
|
2568
2568
|
}),
|
|
2569
2569
|
},
|
|
2570
2570
|
/**
|
|
@@ -4086,7 +4086,7 @@ class Client$1 {
|
|
|
4086
4086
|
this.logger.error(formatErrors(e));
|
|
4087
4087
|
throw e;
|
|
4088
4088
|
});
|
|
4089
|
-
return get__default["default"](res, "data",
|
|
4089
|
+
return get__default["default"](res, "data", null);
|
|
4090
4090
|
}),
|
|
4091
4091
|
},
|
|
4092
4092
|
};
|
|
@@ -10067,7 +10067,7 @@ class Client$1 {
|
|
|
10067
10067
|
this.logger.error(formatErrors(e));
|
|
10068
10068
|
throw e;
|
|
10069
10069
|
});
|
|
10070
|
-
return get__default["default"](res, "data",
|
|
10070
|
+
return get__default["default"](res, "data", null);
|
|
10071
10071
|
}),
|
|
10072
10072
|
/**
|
|
10073
10073
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=upload_finish&version=v1 click to debug }
|
|
@@ -10120,7 +10120,7 @@ class Client$1 {
|
|
|
10120
10120
|
this.logger.error(formatErrors(e));
|
|
10121
10121
|
throw e;
|
|
10122
10122
|
});
|
|
10123
|
-
return get__default["default"](res, "data",
|
|
10123
|
+
return get__default["default"](res, "data", null);
|
|
10124
10124
|
}),
|
|
10125
10125
|
/**
|
|
10126
10126
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=upload_prepare&version=v1 click to debug }
|
|
@@ -10605,7 +10605,7 @@ class Client$1 {
|
|
|
10605
10605
|
this.logger.error(formatErrors(e));
|
|
10606
10606
|
throw e;
|
|
10607
10607
|
});
|
|
10608
|
-
return get__default["default"](res, "data",
|
|
10608
|
+
return get__default["default"](res, "data", null);
|
|
10609
10609
|
}),
|
|
10610
10610
|
/**
|
|
10611
10611
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_finish&version=v1 click to debug }
|
|
@@ -10658,7 +10658,7 @@ class Client$1 {
|
|
|
10658
10658
|
this.logger.error(formatErrors(e));
|
|
10659
10659
|
throw e;
|
|
10660
10660
|
});
|
|
10661
|
-
return get__default["default"](res, "data",
|
|
10661
|
+
return get__default["default"](res, "data", null);
|
|
10662
10662
|
}),
|
|
10663
10663
|
/**
|
|
10664
10664
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_prepare&version=v1 click to debug }
|
|
@@ -14968,7 +14968,7 @@ class Client$1 {
|
|
|
14968
14968
|
this.logger.error(formatErrors(e));
|
|
14969
14969
|
throw e;
|
|
14970
14970
|
});
|
|
14971
|
-
return get__default["default"](res, "data",
|
|
14971
|
+
return get__default["default"](res, "data", null);
|
|
14972
14972
|
}),
|
|
14973
14973
|
/**
|
|
14974
14974
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=file&apiName=get&version=v1 click to debug }
|
|
@@ -15041,7 +15041,7 @@ class Client$1 {
|
|
|
15041
15041
|
this.logger.error(formatErrors(e));
|
|
15042
15042
|
throw e;
|
|
15043
15043
|
});
|
|
15044
|
-
return get__default["default"](res, "data",
|
|
15044
|
+
return get__default["default"](res, "data", null);
|
|
15045
15045
|
}),
|
|
15046
15046
|
/**
|
|
15047
15047
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=image&apiName=get&version=v1 click to debug }
|
|
@@ -17149,7 +17149,7 @@ class Client$1 {
|
|
|
17149
17149
|
this.logger.error(formatErrors(e));
|
|
17150
17150
|
throw e;
|
|
17151
17151
|
});
|
|
17152
|
-
return get__default["default"](res, "data",
|
|
17152
|
+
return get__default["default"](res, "data", null);
|
|
17153
17153
|
}),
|
|
17154
17154
|
},
|
|
17155
17155
|
/**
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -278,7 +278,7 @@ declare abstract class Client$1 {
|
|
|
278
278
|
path: {
|
|
279
279
|
user_id: string;
|
|
280
280
|
};
|
|
281
|
-
}, options?: IRequestOptions$1) => Promise<{} |
|
|
281
|
+
}, options?: IRequestOptions$1) => Promise<{} | null>;
|
|
282
282
|
};
|
|
283
283
|
/**
|
|
284
284
|
* 用户管理
|
|
@@ -1006,7 +1006,7 @@ declare abstract class Client$1 {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
}, options?: IRequestOptions$1) => Promise<{
|
|
1008
1008
|
image_key?: string | undefined;
|
|
1009
|
-
} |
|
|
1009
|
+
} | null>;
|
|
1010
1010
|
};
|
|
1011
1011
|
/**
|
|
1012
1012
|
* 登录密码管理
|
|
@@ -3510,7 +3510,7 @@ declare abstract class Client$1 {
|
|
|
3510
3510
|
file?: {
|
|
3511
3511
|
file_id: string;
|
|
3512
3512
|
} | undefined;
|
|
3513
|
-
} |
|
|
3513
|
+
} | null>;
|
|
3514
3514
|
};
|
|
3515
3515
|
/**
|
|
3516
3516
|
* 考勤组管理
|
|
@@ -6583,7 +6583,7 @@ declare abstract class Client$1 {
|
|
|
6583
6583
|
};
|
|
6584
6584
|
}, options?: IRequestOptions$1) => Promise<{
|
|
6585
6585
|
file_token?: string | undefined;
|
|
6586
|
-
} |
|
|
6586
|
+
} | null>;
|
|
6587
6587
|
};
|
|
6588
6588
|
};
|
|
6589
6589
|
/**
|
|
@@ -39165,7 +39165,7 @@ declare abstract class Client$1 {
|
|
|
39165
39165
|
};
|
|
39166
39166
|
}, options?: IRequestOptions$1) => Promise<{
|
|
39167
39167
|
file_token?: string | undefined;
|
|
39168
|
-
} |
|
|
39168
|
+
} | null>;
|
|
39169
39169
|
/**
|
|
39170
39170
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=upload_finish&version=v1 click to debug }
|
|
39171
39171
|
*
|
|
@@ -39208,7 +39208,7 @@ declare abstract class Client$1 {
|
|
|
39208
39208
|
checksum?: string;
|
|
39209
39209
|
file: Buffer;
|
|
39210
39210
|
};
|
|
39211
|
-
}, options?: IRequestOptions$1) => Promise<{} |
|
|
39211
|
+
}, options?: IRequestOptions$1) => Promise<{} | null>;
|
|
39212
39212
|
/**
|
|
39213
39213
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=upload_prepare&version=v1 click to debug }
|
|
39214
39214
|
*
|
|
@@ -39706,7 +39706,7 @@ declare abstract class Client$1 {
|
|
|
39706
39706
|
};
|
|
39707
39707
|
}, options?: IRequestOptions$1) => Promise<{
|
|
39708
39708
|
file_token?: string | undefined;
|
|
39709
|
-
} |
|
|
39709
|
+
} | null>;
|
|
39710
39710
|
/**
|
|
39711
39711
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_finish&version=v1 click to debug }
|
|
39712
39712
|
*
|
|
@@ -39749,7 +39749,7 @@ declare abstract class Client$1 {
|
|
|
39749
39749
|
checksum?: string;
|
|
39750
39750
|
file: Buffer;
|
|
39751
39751
|
};
|
|
39752
|
-
}, options?: IRequestOptions$1) => Promise<{} |
|
|
39752
|
+
}, options?: IRequestOptions$1) => Promise<{} | null>;
|
|
39753
39753
|
/**
|
|
39754
39754
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_prepare&version=v1 click to debug }
|
|
39755
39755
|
*
|
|
@@ -46720,7 +46720,7 @@ declare abstract class Client$1 {
|
|
|
46720
46720
|
};
|
|
46721
46721
|
}, options?: IRequestOptions$1) => Promise<{
|
|
46722
46722
|
file_key?: string | undefined;
|
|
46723
|
-
} |
|
|
46723
|
+
} | null>;
|
|
46724
46724
|
/**
|
|
46725
46725
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=file&apiName=get&version=v1 click to debug }
|
|
46726
46726
|
*
|
|
@@ -46762,7 +46762,7 @@ declare abstract class Client$1 {
|
|
|
46762
46762
|
};
|
|
46763
46763
|
}, options?: IRequestOptions$1) => Promise<{
|
|
46764
46764
|
image_key?: string | undefined;
|
|
46765
|
-
} |
|
|
46765
|
+
} | null>;
|
|
46766
46766
|
/**
|
|
46767
46767
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=image&apiName=get&version=v1 click to debug }
|
|
46768
46768
|
*
|
|
@@ -48846,7 +48846,7 @@ declare abstract class Client$1 {
|
|
|
48846
48846
|
}, options?: IRequestOptions$1) => Promise<{
|
|
48847
48847
|
file_token?: string | undefined;
|
|
48848
48848
|
url?: string | undefined;
|
|
48849
|
-
} |
|
|
48849
|
+
} | null>;
|
|
48850
48850
|
};
|
|
48851
48851
|
/**
|
|
48852
48852
|
* 指标库
|