@alicloud/aliding20230426 2.48.2 → 2.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +16 -0
- package/dist/client.js +68 -0
- package/dist/client.js.map +1 -1
- package/dist/models/SignOutOrgAccountHeaders.d.ts +37 -0
- package/dist/models/SignOutOrgAccountHeaders.js +85 -0
- package/dist/models/SignOutOrgAccountHeaders.js.map +1 -0
- package/dist/models/SignOutOrgAccountRequest.d.ts +46 -0
- package/dist/models/SignOutOrgAccountRequest.js +87 -0
- package/dist/models/SignOutOrgAccountRequest.js.map +1 -0
- package/dist/models/SignOutOrgAccountResponse.d.ts +19 -0
- package/dist/models/SignOutOrgAccountResponse.js +69 -0
- package/dist/models/SignOutOrgAccountResponse.js.map +1 -0
- package/dist/models/SignOutOrgAccountResponseBody.d.ts +33 -0
- package/dist/models/SignOutOrgAccountResponseBody.js +64 -0
- package/dist/models/SignOutOrgAccountResponseBody.js.map +1 -0
- package/dist/models/SignOutOrgAccountShrinkHeaders.d.ts +17 -0
- package/dist/models/SignOutOrgAccountShrinkHeaders.js +63 -0
- package/dist/models/SignOutOrgAccountShrinkHeaders.js.map +1 -0
- package/dist/models/SignOutOrgAccountShrinkRequest.d.ts +27 -0
- package/dist/models/SignOutOrgAccountShrinkRequest.js +62 -0
- package/dist/models/SignOutOrgAccountShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +51 -35
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +78 -0
- package/src/models/SignOutOrgAccountHeaders.ts +66 -0
- package/src/models/SignOutOrgAccountRequest.ts +77 -0
- package/src/models/SignOutOrgAccountResponse.ts +40 -0
- package/src/models/SignOutOrgAccountResponseBody.ts +52 -0
- package/src/models/SignOutOrgAccountShrinkHeaders.ts +33 -0
- package/src/models/SignOutOrgAccountShrinkRequest.ts +44 -0
- package/src/models/model.ts +8 -0
package/dist/client.d.ts
CHANGED
|
@@ -3949,6 +3949,22 @@ export default class Client extends OpenApi {
|
|
|
3949
3949
|
* @returns SetRowsVisibilityResponse
|
|
3950
3950
|
*/
|
|
3951
3951
|
setRowsVisibility(request: $_model.SetRowsVisibilityRequest): Promise<$_model.SetRowsVisibilityResponse>;
|
|
3952
|
+
/**
|
|
3953
|
+
* 强制登出企业账号
|
|
3954
|
+
*
|
|
3955
|
+
* @param tmpReq - SignOutOrgAccountRequest
|
|
3956
|
+
* @param tmpHeader - SignOutOrgAccountHeaders
|
|
3957
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3958
|
+
* @returns SignOutOrgAccountResponse
|
|
3959
|
+
*/
|
|
3960
|
+
signOutOrgAccountWithOptions(tmpReq: $_model.SignOutOrgAccountRequest, tmpHeader: $_model.SignOutOrgAccountHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.SignOutOrgAccountResponse>;
|
|
3961
|
+
/**
|
|
3962
|
+
* 强制登出企业账号
|
|
3963
|
+
*
|
|
3964
|
+
* @param request - SignOutOrgAccountRequest
|
|
3965
|
+
* @returns SignOutOrgAccountResponse
|
|
3966
|
+
*/
|
|
3967
|
+
signOutOrgAccount(request: $_model.SignOutOrgAccountRequest): Promise<$_model.SignOutOrgAccountResponse>;
|
|
3952
3968
|
/**
|
|
3953
3969
|
* 获取用户发送日志的概要信息
|
|
3954
3970
|
*
|
package/dist/client.js
CHANGED
|
@@ -17691,6 +17691,74 @@ class Client extends openapi_core_1.default {
|
|
|
17691
17691
|
let headers = new $_model.SetRowsVisibilityHeaders({});
|
|
17692
17692
|
return await this.setRowsVisibilityWithOptions(request, headers, runtime);
|
|
17693
17693
|
}
|
|
17694
|
+
/**
|
|
17695
|
+
* 强制登出企业账号
|
|
17696
|
+
*
|
|
17697
|
+
* @param tmpReq - SignOutOrgAccountRequest
|
|
17698
|
+
* @param tmpHeader - SignOutOrgAccountHeaders
|
|
17699
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17700
|
+
* @returns SignOutOrgAccountResponse
|
|
17701
|
+
*/
|
|
17702
|
+
async signOutOrgAccountWithOptions(tmpReq, tmpHeader, runtime) {
|
|
17703
|
+
tmpReq.validate();
|
|
17704
|
+
let request = new $_model.SignOutOrgAccountShrinkRequest({});
|
|
17705
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
17706
|
+
let headers = new $_model.SignOutOrgAccountShrinkHeaders({});
|
|
17707
|
+
openapi_core_2.OpenApiUtil.convert(tmpHeader, headers);
|
|
17708
|
+
if (!$dara.isNull(tmpHeader.accountContext)) {
|
|
17709
|
+
headers.accountContextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
17710
|
+
}
|
|
17711
|
+
if (!$dara.isNull(tmpReq.reasonI18nForEmployee)) {
|
|
17712
|
+
request.reasonI18nForEmployeeShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.reasonI18nForEmployee, "ReasonI18nForEmployee", "json");
|
|
17713
|
+
}
|
|
17714
|
+
if (!$dara.isNull(tmpReq.tenantContext)) {
|
|
17715
|
+
request.tenantContextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
17716
|
+
}
|
|
17717
|
+
let body = {};
|
|
17718
|
+
if (!$dara.isNull(request.reason)) {
|
|
17719
|
+
body["Reason"] = request.reason;
|
|
17720
|
+
}
|
|
17721
|
+
if (!$dara.isNull(request.reasonI18nForEmployeeShrink)) {
|
|
17722
|
+
body["ReasonI18nForEmployee"] = request.reasonI18nForEmployeeShrink;
|
|
17723
|
+
}
|
|
17724
|
+
if (!$dara.isNull(request.tenantContextShrink)) {
|
|
17725
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
17726
|
+
}
|
|
17727
|
+
let realHeaders = {};
|
|
17728
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
17729
|
+
realHeaders = headers.commonHeaders;
|
|
17730
|
+
}
|
|
17731
|
+
if (!$dara.isNull(headers.accountContextShrink)) {
|
|
17732
|
+
realHeaders["AccountContext"] = typeof headers.accountContextShrink === "string" ? headers.accountContextShrink : JSON.stringify(headers.accountContextShrink);
|
|
17733
|
+
}
|
|
17734
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
17735
|
+
headers: realHeaders,
|
|
17736
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
17737
|
+
});
|
|
17738
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
17739
|
+
action: "SignOutOrgAccount",
|
|
17740
|
+
version: "2023-04-26",
|
|
17741
|
+
protocol: "HTTPS",
|
|
17742
|
+
pathname: `/dingtalk/v1/contact/signOutOrgAccount`,
|
|
17743
|
+
method: "POST",
|
|
17744
|
+
authType: "AK",
|
|
17745
|
+
style: "ROA",
|
|
17746
|
+
reqBodyType: "formData",
|
|
17747
|
+
bodyType: "json",
|
|
17748
|
+
});
|
|
17749
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SignOutOrgAccountResponse({}));
|
|
17750
|
+
}
|
|
17751
|
+
/**
|
|
17752
|
+
* 强制登出企业账号
|
|
17753
|
+
*
|
|
17754
|
+
* @param request - SignOutOrgAccountRequest
|
|
17755
|
+
* @returns SignOutOrgAccountResponse
|
|
17756
|
+
*/
|
|
17757
|
+
async signOutOrgAccount(request) {
|
|
17758
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
17759
|
+
let headers = new $_model.SignOutOrgAccountHeaders({});
|
|
17760
|
+
return await this.signOutOrgAccountWithOptions(request, headers, runtime);
|
|
17761
|
+
}
|
|
17694
17762
|
/**
|
|
17695
17763
|
* 获取用户发送日志的概要信息
|
|
17696
17764
|
*
|