@tachybase/plugin-auth-dingtalk 1.3.19 → 1.3.21
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/externalVersion.js +5 -5
- package/dist/node_modules/@alicloud/dingtalk/dist/agoal_1_0/client.d.ts +1750 -330
- package/dist/node_modules/@alicloud/dingtalk/dist/agoal_1_0/client.js +1733 -114
- package/dist/node_modules/@alicloud/dingtalk/dist/ai_paa_s_1_0/client.d.ts +294 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/ai_paa_s_1_0/client.js +461 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/assistant_1_0/client.d.ts +691 -7
- package/dist/node_modules/@alicloud/dingtalk/dist/assistant_1_0/client.js +1143 -37
- package/dist/node_modules/@alicloud/dingtalk/dist/ats_1_0/client.d.ts +202 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/ats_1_0/client.js +335 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/attendance_1_0/client.d.ts +21 -13
- package/dist/node_modules/@alicloud/dingtalk/dist/attendance_1_0/client.js +21 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_1_0/client.d.ts +103 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_1_0/client.js +169 -5
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_2_0/client.d.ts +3261 -901
- package/dist/node_modules/@alicloud/dingtalk/dist/bizfinance_2_0/client.js +4736 -1197
- package/dist/node_modules/@alicloud/dingtalk/dist/calendar_1_0/client.d.ts +145 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/calendar_1_0/client.js +238 -6
- package/dist/node_modules/@alicloud/dingtalk/dist/card_1_0/client.d.ts +105 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/card_1_0/client.js +181 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/conference_1_0/client.d.ts +159 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/conference_1_0/client.js +243 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/contact_1_0/client.d.ts +399 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/contact_1_0/client.js +614 -11
- package/dist/node_modules/@alicloud/dingtalk/dist/contract_1_0/client.d.ts +2789 -274
- package/dist/node_modules/@alicloud/dingtalk/dist/contract_1_0/client.js +4218 -407
- package/dist/node_modules/@alicloud/dingtalk/dist/crm_1_0/client.d.ts +81 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/crm_1_0/client.js +133 -7
- package/dist/node_modules/@alicloud/dingtalk/dist/datacenter_1_0/client.d.ts +168 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/datacenter_1_0/client.js +281 -11
- package/dist/node_modules/@alicloud/dingtalk/dist/diot_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_1_0/client.d.ts +1110 -24
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_1_0/client.js +1714 -115
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_2_0/client.d.ts +1073 -73
- package/dist/node_modules/@alicloud/dingtalk/dist/doc_2_0/client.js +1316 -39
- package/dist/node_modules/@alicloud/dingtalk/dist/edu_1_0/client.d.ts +5893 -2422
- package/dist/node_modules/@alicloud/dingtalk/dist/edu_1_0/client.js +7232 -1965
- package/dist/node_modules/@alicloud/dingtalk/dist/event_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/exclusive_1_0/client.d.ts +851 -51
- package/dist/node_modules/@alicloud/dingtalk/dist/exclusive_1_0/client.js +1239 -66
- package/dist/node_modules/@alicloud/dingtalk/dist/flashmeeting_1_0/client.d.ts +92 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/flashmeeting_1_0/client.js +166 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/gateway_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/hrbrain_1_0/client.d.ts +1373 -233
- package/dist/node_modules/@alicloud/dingtalk/dist/hrbrain_1_0/client.js +2004 -246
- package/dist/node_modules/@alicloud/dingtalk/dist/hrm_1_0/client.d.ts +598 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/hrm_1_0/client.js +893 -33
- package/dist/node_modules/@alicloud/dingtalk/dist/im_1_0/client.d.ts +1373 -122
- package/dist/node_modules/@alicloud/dingtalk/dist/im_1_0/client.js +2099 -264
- package/dist/node_modules/@alicloud/dingtalk/dist/im_2_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/index.d.ts +6 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/index.js +2 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/industry_1_0/client.d.ts +160 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/industry_1_0/client.js +227 -14
- package/dist/node_modules/@alicloud/dingtalk/dist/live_1_0/client.d.ts +4 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/live_1_0/client.js +6 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/mail_1_0/client.d.ts +1089 -38
- package/dist/node_modules/@alicloud/dingtalk/dist/mail_1_0/client.js +1429 -62
- package/dist/node_modules/@alicloud/dingtalk/dist/manufacturing_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/meter_1_0/client.d.ts +101 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/meter_1_0/client.js +202 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/micro_app_1_0/client.d.ts +113 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/micro_app_1_0/client.js +171 -3
- package/dist/node_modules/@alicloud/dingtalk/dist/miniapp_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/minutes_1_0/client.d.ts +940 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/minutes_1_0/client.js +1545 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/oauth2_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/pedia_1_0/client.d.ts +1 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/pedia_1_0/client.js +5 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/project_1_0/client.d.ts +83 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/project_1_0/client.js +68 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/rooms_1_0/client.d.ts +90 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/rooms_1_0/client.js +83 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/salary_1_0/client.d.ts +642 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/salary_1_0/client.js +919 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_1_0/client.d.ts +130 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_1_0/client.js +171 -6
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_2_0/client.d.ts +283 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/storage_2_0/client.js +340 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/team_sphere_1_0/client.d.ts +223 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/team_sphere_1_0/client.js +347 -4
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_1_0/client.d.ts +42 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_1_0/client.js +53 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_e_e_1_0/client.d.ts +458 -4
- package/dist/node_modules/@alicloud/dingtalk/dist/todo_e_e_1_0/client.js +942 -153
- package/dist/node_modules/@alicloud/dingtalk/dist/trip_1_0/client.d.ts +5 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/trip_1_0/client.js +2 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/vip_member_1_0/client.d.ts +254 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/vip_member_1_0/client.js +477 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/watt_1_0/client.js +0 -1
- package/dist/node_modules/@alicloud/dingtalk/dist/wiki_2_0/client.d.ts +234 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/wiki_2_0/client.js +298 -2
- package/dist/node_modules/@alicloud/dingtalk/dist/workflow_1_0/client.d.ts +746 -15
- package/dist/node_modules/@alicloud/dingtalk/dist/workflow_1_0/client.js +871 -20
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_1_0/client.d.ts +402 -0
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_1_0/client.js +412 -7
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_2_0/client.d.ts +890 -112
- package/dist/node_modules/@alicloud/dingtalk/dist/yida_2_0/client.js +1063 -2
- package/dist/node_modules/@alicloud/dingtalk/meter_1_0.js +1 -0
- package/dist/node_modules/@alicloud/dingtalk/minutes_1_0.js +1 -0
- package/dist/node_modules/@alicloud/dingtalk/package.json +1 -1
- package/dist/node_modules/@alicloud/dingtalk/salary_1_0.js +1 -0
- package/dist/node_modules/@alicloud/dingtalk/src/agoal_1_0/client.ts +2695 -319
- package/dist/node_modules/@alicloud/dingtalk/src/ai_paa_s_1_0/client.ts +566 -0
- package/dist/node_modules/@alicloud/dingtalk/src/assistant_1_0/client.ts +1492 -117
- package/dist/node_modules/@alicloud/dingtalk/src/ats_1_0/client.ts +420 -0
- package/dist/node_modules/@alicloud/dingtalk/src/attendance_1_0/client.ts +45 -13
- package/dist/node_modules/@alicloud/dingtalk/src/bizfinance_1_0/client.ts +232 -2
- package/dist/node_modules/@alicloud/dingtalk/src/bizfinance_2_0/client.ts +6892 -2251
- package/dist/node_modules/@alicloud/dingtalk/src/calendar_1_0/client.ts +287 -0
- package/dist/node_modules/@alicloud/dingtalk/src/card_1_0/client.ts +224 -0
- package/dist/node_modules/@alicloud/dingtalk/src/conference_1_0/client.ts +297 -2
- package/dist/node_modules/@alicloud/dingtalk/src/contact_1_0/client.ts +811 -42
- package/dist/node_modules/@alicloud/dingtalk/src/contract_1_0/client.ts +5523 -617
- package/dist/node_modules/@alicloud/dingtalk/src/crm_1_0/client.ts +157 -0
- package/dist/node_modules/@alicloud/dingtalk/src/datacenter_1_0/client.ts +340 -0
- package/dist/node_modules/@alicloud/dingtalk/src/diot_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/doc_1_0/client.ts +2802 -720
- package/dist/node_modules/@alicloud/dingtalk/src/doc_2_0/client.ts +1889 -140
- package/dist/node_modules/@alicloud/dingtalk/src/edu_1_0/client.ts +8496 -1557
- package/dist/node_modules/@alicloud/dingtalk/src/event_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/exclusive_1_0/client.ts +1831 -283
- package/dist/node_modules/@alicloud/dingtalk/src/flashmeeting_1_0/client.ts +201 -0
- package/dist/node_modules/@alicloud/dingtalk/src/gateway_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/hrbrain_1_0/client.ts +2742 -542
- package/dist/node_modules/@alicloud/dingtalk/src/hrm_1_0/client.ts +1182 -33
- package/dist/node_modules/@alicloud/dingtalk/src/im_1_0/client.ts +3100 -718
- package/dist/node_modules/@alicloud/dingtalk/src/im_2_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/index.ts +6 -0
- package/dist/node_modules/@alicloud/dingtalk/src/industry_1_0/client.ts +319 -0
- package/dist/node_modules/@alicloud/dingtalk/src/live_1_0/client.ts +8 -2
- package/dist/node_modules/@alicloud/dingtalk/src/mail_1_0/client.ts +2029 -159
- package/dist/node_modules/@alicloud/dingtalk/src/manufacturing_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/meter_1_0/client.ts +201 -0
- package/dist/node_modules/@alicloud/dingtalk/src/micro_app_1_0/client.ts +215 -1
- package/dist/node_modules/@alicloud/dingtalk/src/miniapp_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/minutes_1_0/client.ts +1871 -0
- package/dist/node_modules/@alicloud/dingtalk/src/oauth2_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/pedia_1_0/client.ts +7 -0
- package/dist/node_modules/@alicloud/dingtalk/src/project_1_0/client.ts +161 -0
- package/dist/node_modules/@alicloud/dingtalk/src/rooms_1_0/client.ts +147 -0
- package/dist/node_modules/@alicloud/dingtalk/src/salary_1_0/client.ts +1156 -0
- package/dist/node_modules/@alicloud/dingtalk/src/storage_1_0/client.ts +226 -0
- package/dist/node_modules/@alicloud/dingtalk/src/storage_2_0/client.ts +492 -0
- package/dist/node_modules/@alicloud/dingtalk/src/team_sphere_1_0/client.ts +442 -0
- package/dist/node_modules/@alicloud/dingtalk/src/todo_1_0/client.ts +89 -0
- package/dist/node_modules/@alicloud/dingtalk/src/todo_e_e_1_0/client.ts +1061 -88
- package/dist/node_modules/@alicloud/dingtalk/src/trip_1_0/client.ts +7 -0
- package/dist/node_modules/@alicloud/dingtalk/src/vip_member_1_0/client.ts +583 -0
- package/dist/node_modules/@alicloud/dingtalk/src/watt_1_0/client.ts +0 -1
- package/dist/node_modules/@alicloud/dingtalk/src/wiki_2_0/client.ts +423 -0
- package/dist/node_modules/@alicloud/dingtalk/src/workflow_1_0/client.ts +1304 -24
- package/dist/node_modules/@alicloud/dingtalk/src/yida_1_0/client.ts +774 -102
- package/dist/node_modules/@alicloud/dingtalk/src/yida_2_0/client.ts +1910 -429
- package/dist/node_modules/@alicloud/openapi-client/package.json +1 -1
- package/dist/node_modules/@alicloud/tea-util/package.json +1 -1
- package/package.json +8 -8
|
@@ -557,7 +557,6 @@ export default class Client extends OpenApi {
|
|
|
557
557
|
super(config);
|
|
558
558
|
let gatewayClient = new GatewayClient();
|
|
559
559
|
this._spi = gatewayClient;
|
|
560
|
-
this._signatureAlgorithm = "v2";
|
|
561
560
|
this._endpointRule = "";
|
|
562
561
|
if (Util.empty(this._endpoint)) {
|
|
563
562
|
this._endpoint = "api.dingtalk.com";
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
import Util, * as $Util from '@alicloud/tea-util';
|
|
5
|
+
import GatewayClient from '@alicloud/gateway-dingtalk';
|
|
6
|
+
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
7
|
+
import OpenApiUtil from '@alicloud/openapi-util';
|
|
8
|
+
import * as $tea from '@alicloud/tea-typescript';
|
|
9
|
+
|
|
10
|
+
export class GetResourceUseInfoHeaders extends $tea.Model {
|
|
11
|
+
commonHeaders?: { [key: string]: string };
|
|
12
|
+
xAcsDingtalkAccessToken?: string;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
commonHeaders: 'commonHeaders',
|
|
16
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
23
|
+
xAcsDingtalkAccessToken: 'string',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class GetResourceUseInfoRequest extends $tea.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* This parameter is required.
|
|
36
|
+
*/
|
|
37
|
+
benefitCodeList?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* This parameter is required.
|
|
41
|
+
*/
|
|
42
|
+
period?: string;
|
|
43
|
+
static names(): { [key: string]: string } {
|
|
44
|
+
return {
|
|
45
|
+
benefitCodeList: 'benefitCodeList',
|
|
46
|
+
period: 'period',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static types(): { [key: string]: any } {
|
|
51
|
+
return {
|
|
52
|
+
benefitCodeList: { 'type': 'array', 'itemType': 'string' },
|
|
53
|
+
period: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
constructor(map?: { [key: string]: any }) {
|
|
58
|
+
super(map);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class GetResourceUseInfoResponseBody extends $tea.Model {
|
|
63
|
+
result?: GetResourceUseInfoResponseBodyResult[];
|
|
64
|
+
static names(): { [key: string]: string } {
|
|
65
|
+
return {
|
|
66
|
+
result: 'result',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
result: { 'type': 'array', 'itemType': GetResourceUseInfoResponseBodyResult },
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class GetResourceUseInfoResponse extends $tea.Model {
|
|
82
|
+
headers?: { [key: string]: string };
|
|
83
|
+
statusCode?: number;
|
|
84
|
+
body?: GetResourceUseInfoResponseBody;
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
headers: 'headers',
|
|
88
|
+
statusCode: 'statusCode',
|
|
89
|
+
body: 'body',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
96
|
+
statusCode: 'number',
|
|
97
|
+
body: GetResourceUseInfoResponseBody,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
constructor(map?: { [key: string]: any }) {
|
|
102
|
+
super(map);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export class GetResourceUseInfoResponseBodyResult extends $tea.Model {
|
|
107
|
+
quotaNum?: number;
|
|
108
|
+
usedNum?: number;
|
|
109
|
+
static names(): { [key: string]: string } {
|
|
110
|
+
return {
|
|
111
|
+
quotaNum: 'quotaNum',
|
|
112
|
+
usedNum: 'usedNum',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static types(): { [key: string]: any } {
|
|
117
|
+
return {
|
|
118
|
+
quotaNum: 'number',
|
|
119
|
+
usedNum: 'number',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
constructor(map?: { [key: string]: any }) {
|
|
124
|
+
super(map);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
export default class Client extends OpenApi {
|
|
130
|
+
|
|
131
|
+
constructor(config: $OpenApi.Config) {
|
|
132
|
+
super(config);
|
|
133
|
+
let gatewayClient = new GatewayClient();
|
|
134
|
+
this._spi = gatewayClient;
|
|
135
|
+
this._endpointRule = "";
|
|
136
|
+
if (Util.empty(this._endpoint)) {
|
|
137
|
+
this._endpoint = "api.dingtalk.com";
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* 获取开放平台当月资源用量
|
|
145
|
+
*
|
|
146
|
+
* @param request - GetResourceUseInfoRequest
|
|
147
|
+
* @param headers - GetResourceUseInfoHeaders
|
|
148
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
149
|
+
* @returns GetResourceUseInfoResponse
|
|
150
|
+
*/
|
|
151
|
+
async getResourceUseInfoWithOptions(request: GetResourceUseInfoRequest, headers: GetResourceUseInfoHeaders, runtime: $Util.RuntimeOptions): Promise<GetResourceUseInfoResponse> {
|
|
152
|
+
Util.validateModel(request);
|
|
153
|
+
let body : {[key: string ]: any} = { };
|
|
154
|
+
if (!Util.isUnset(request.benefitCodeList)) {
|
|
155
|
+
body["benefitCodeList"] = request.benefitCodeList;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (!Util.isUnset(request.period)) {
|
|
159
|
+
body["period"] = request.period;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
163
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
164
|
+
realHeaders = headers.commonHeaders;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
168
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
172
|
+
headers: realHeaders,
|
|
173
|
+
body: OpenApiUtil.parseToMap(body),
|
|
174
|
+
});
|
|
175
|
+
let params = new $OpenApi.Params({
|
|
176
|
+
action: "GetResourceUseInfo",
|
|
177
|
+
version: "meter_1.0",
|
|
178
|
+
protocol: "HTTP",
|
|
179
|
+
pathname: `/v1.0/meter/resources/useInfos/query`,
|
|
180
|
+
method: "POST",
|
|
181
|
+
authType: "AK",
|
|
182
|
+
style: "ROA",
|
|
183
|
+
reqBodyType: "none",
|
|
184
|
+
bodyType: "json",
|
|
185
|
+
});
|
|
186
|
+
return $tea.cast<GetResourceUseInfoResponse>(await this.execute(params, req, runtime), new GetResourceUseInfoResponse({}));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* 获取开放平台当月资源用量
|
|
191
|
+
*
|
|
192
|
+
* @param request - GetResourceUseInfoRequest
|
|
193
|
+
* @returns GetResourceUseInfoResponse
|
|
194
|
+
*/
|
|
195
|
+
async getResourceUseInfo(request: GetResourceUseInfoRequest): Promise<GetResourceUseInfoResponse> {
|
|
196
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
197
|
+
let headers = new GetResourceUseInfoHeaders({ });
|
|
198
|
+
return await this.getResourceUseInfoWithOptions(request, headers, runtime);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
}
|
|
@@ -1826,6 +1826,109 @@ export class GetUserAppDevAccessResponse extends $tea.Model {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
|
+
export class IsOrgMicroAppVisibleByUserIdHeaders extends $tea.Model {
|
|
1830
|
+
commonHeaders?: { [key: string]: string };
|
|
1831
|
+
xAcsDingtalkAccessToken?: string;
|
|
1832
|
+
static names(): { [key: string]: string } {
|
|
1833
|
+
return {
|
|
1834
|
+
commonHeaders: 'commonHeaders',
|
|
1835
|
+
xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
static types(): { [key: string]: any } {
|
|
1840
|
+
return {
|
|
1841
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1842
|
+
xAcsDingtalkAccessToken: 'string',
|
|
1843
|
+
};
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
constructor(map?: { [key: string]: any }) {
|
|
1847
|
+
super(map);
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
export class IsOrgMicroAppVisibleByUserIdRequest extends $tea.Model {
|
|
1852
|
+
/**
|
|
1853
|
+
* @remarks
|
|
1854
|
+
* This parameter is required.
|
|
1855
|
+
*/
|
|
1856
|
+
appId?: number;
|
|
1857
|
+
/**
|
|
1858
|
+
* @remarks
|
|
1859
|
+
* This parameter is required.
|
|
1860
|
+
*/
|
|
1861
|
+
id?: string;
|
|
1862
|
+
/**
|
|
1863
|
+
* @remarks
|
|
1864
|
+
* This parameter is required.
|
|
1865
|
+
*/
|
|
1866
|
+
type?: string;
|
|
1867
|
+
static names(): { [key: string]: string } {
|
|
1868
|
+
return {
|
|
1869
|
+
appId: 'appId',
|
|
1870
|
+
id: 'id',
|
|
1871
|
+
type: 'type',
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
static types(): { [key: string]: any } {
|
|
1876
|
+
return {
|
|
1877
|
+
appId: 'number',
|
|
1878
|
+
id: 'string',
|
|
1879
|
+
type: 'string',
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
constructor(map?: { [key: string]: any }) {
|
|
1884
|
+
super(map);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export class IsOrgMicroAppVisibleByUserIdResponseBody extends $tea.Model {
|
|
1889
|
+
result?: boolean;
|
|
1890
|
+
static names(): { [key: string]: string } {
|
|
1891
|
+
return {
|
|
1892
|
+
result: 'result',
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
static types(): { [key: string]: any } {
|
|
1897
|
+
return {
|
|
1898
|
+
result: 'boolean',
|
|
1899
|
+
};
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
constructor(map?: { [key: string]: any }) {
|
|
1903
|
+
super(map);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
export class IsOrgMicroAppVisibleByUserIdResponse extends $tea.Model {
|
|
1908
|
+
headers?: { [key: string]: string };
|
|
1909
|
+
statusCode?: number;
|
|
1910
|
+
body?: IsOrgMicroAppVisibleByUserIdResponseBody;
|
|
1911
|
+
static names(): { [key: string]: string } {
|
|
1912
|
+
return {
|
|
1913
|
+
headers: 'headers',
|
|
1914
|
+
statusCode: 'statusCode',
|
|
1915
|
+
body: 'body',
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
static types(): { [key: string]: any } {
|
|
1920
|
+
return {
|
|
1921
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1922
|
+
statusCode: 'number',
|
|
1923
|
+
body: IsOrgMicroAppVisibleByUserIdResponseBody,
|
|
1924
|
+
};
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
constructor(map?: { [key: string]: any }) {
|
|
1928
|
+
super(map);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1829
1932
|
export class ListAllAppHeaders extends $tea.Model {
|
|
1830
1933
|
commonHeaders?: { [key: string]: string };
|
|
1831
1934
|
xAcsDingtalkAccessToken?: string;
|
|
@@ -3834,6 +3937,50 @@ export class ListAllAppResponseBodyAppList extends $tea.Model {
|
|
|
3834
3937
|
}
|
|
3835
3938
|
}
|
|
3836
3939
|
|
|
3940
|
+
export class ListAllInnerAppsResponseBodyAppListCoolAppInfo extends $tea.Model {
|
|
3941
|
+
coolAppCode?: string;
|
|
3942
|
+
name?: string;
|
|
3943
|
+
static names(): { [key: string]: string } {
|
|
3944
|
+
return {
|
|
3945
|
+
coolAppCode: 'coolAppCode',
|
|
3946
|
+
name: 'name',
|
|
3947
|
+
};
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
static types(): { [key: string]: any } {
|
|
3951
|
+
return {
|
|
3952
|
+
coolAppCode: 'string',
|
|
3953
|
+
name: 'string',
|
|
3954
|
+
};
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
constructor(map?: { [key: string]: any }) {
|
|
3958
|
+
super(map);
|
|
3959
|
+
}
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
export class ListAllInnerAppsResponseBodyAppListRobotInfo extends $tea.Model {
|
|
3963
|
+
name?: string;
|
|
3964
|
+
robotCode?: string;
|
|
3965
|
+
static names(): { [key: string]: string } {
|
|
3966
|
+
return {
|
|
3967
|
+
name: 'name',
|
|
3968
|
+
robotCode: 'robotCode',
|
|
3969
|
+
};
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
static types(): { [key: string]: any } {
|
|
3973
|
+
return {
|
|
3974
|
+
name: 'string',
|
|
3975
|
+
robotCode: 'string',
|
|
3976
|
+
};
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
constructor(map?: { [key: string]: any }) {
|
|
3980
|
+
super(map);
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3837
3984
|
export class ListAllInnerAppsResponseBodyAppList extends $tea.Model {
|
|
3838
3985
|
/**
|
|
3839
3986
|
* @remarks
|
|
@@ -3859,6 +4006,7 @@ export class ListAllInnerAppsResponseBodyAppList extends $tea.Model {
|
|
|
3859
4006
|
* 1
|
|
3860
4007
|
*/
|
|
3861
4008
|
appStatus?: number;
|
|
4009
|
+
coolAppInfo?: ListAllInnerAppsResponseBodyAppListCoolAppInfo[];
|
|
3862
4010
|
/**
|
|
3863
4011
|
* @example
|
|
3864
4012
|
* desc
|
|
@@ -3897,11 +4045,13 @@ export class ListAllInnerAppsResponseBodyAppList extends $tea.Model {
|
|
|
3897
4045
|
* https://www.dingtalk.com
|
|
3898
4046
|
*/
|
|
3899
4047
|
pcHomepageLink?: string;
|
|
4048
|
+
robotInfo?: ListAllInnerAppsResponseBodyAppListRobotInfo;
|
|
3900
4049
|
static names(): { [key: string]: string } {
|
|
3901
4050
|
return {
|
|
3902
4051
|
agentId: 'agentId',
|
|
3903
4052
|
appId: 'appId',
|
|
3904
4053
|
appStatus: 'appStatus',
|
|
4054
|
+
coolAppInfo: 'coolAppInfo',
|
|
3905
4055
|
desc: 'desc',
|
|
3906
4056
|
developType: 'developType',
|
|
3907
4057
|
homepageLink: 'homepageLink',
|
|
@@ -3909,6 +4059,7 @@ export class ListAllInnerAppsResponseBodyAppList extends $tea.Model {
|
|
|
3909
4059
|
name: 'name',
|
|
3910
4060
|
ompLink: 'ompLink',
|
|
3911
4061
|
pcHomepageLink: 'pcHomepageLink',
|
|
4062
|
+
robotInfo: 'robotInfo',
|
|
3912
4063
|
};
|
|
3913
4064
|
}
|
|
3914
4065
|
|
|
@@ -3917,6 +4068,7 @@ export class ListAllInnerAppsResponseBodyAppList extends $tea.Model {
|
|
|
3917
4068
|
agentId: 'number',
|
|
3918
4069
|
appId: 'number',
|
|
3919
4070
|
appStatus: 'number',
|
|
4071
|
+
coolAppInfo: { 'type': 'array', 'itemType': ListAllInnerAppsResponseBodyAppListCoolAppInfo },
|
|
3920
4072
|
desc: 'string',
|
|
3921
4073
|
developType: 'number',
|
|
3922
4074
|
homepageLink: 'string',
|
|
@@ -3924,6 +4076,7 @@ export class ListAllInnerAppsResponseBodyAppList extends $tea.Model {
|
|
|
3924
4076
|
name: 'string',
|
|
3925
4077
|
ompLink: 'string',
|
|
3926
4078
|
pcHomepageLink: 'string',
|
|
4079
|
+
robotInfo: ListAllInnerAppsResponseBodyAppListRobotInfo,
|
|
3927
4080
|
};
|
|
3928
4081
|
}
|
|
3929
4082
|
|
|
@@ -4365,7 +4518,6 @@ export default class Client extends OpenApi {
|
|
|
4365
4518
|
super(config);
|
|
4366
4519
|
let gatewayClient = new GatewayClient();
|
|
4367
4520
|
this._spi = gatewayClient;
|
|
4368
|
-
this._signatureAlgorithm = "v2";
|
|
4369
4521
|
this._endpointRule = "";
|
|
4370
4522
|
if (Util.empty(this._endpoint)) {
|
|
4371
4523
|
this._endpoint = "api.dingtalk.com";
|
|
@@ -5463,6 +5615,68 @@ export default class Client extends OpenApi {
|
|
|
5463
5615
|
return await this.getUserAppDevAccessWithOptions(userId, headers, runtime);
|
|
5464
5616
|
}
|
|
5465
5617
|
|
|
5618
|
+
/**
|
|
5619
|
+
* 判断人员是否在应用的可见范围内
|
|
5620
|
+
*
|
|
5621
|
+
* @param request - IsOrgMicroAppVisibleByUserIdRequest
|
|
5622
|
+
* @param headers - IsOrgMicroAppVisibleByUserIdHeaders
|
|
5623
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5624
|
+
* @returns IsOrgMicroAppVisibleByUserIdResponse
|
|
5625
|
+
*/
|
|
5626
|
+
async isOrgMicroAppVisibleByUserIdWithOptions(request: IsOrgMicroAppVisibleByUserIdRequest, headers: IsOrgMicroAppVisibleByUserIdHeaders, runtime: $Util.RuntimeOptions): Promise<IsOrgMicroAppVisibleByUserIdResponse> {
|
|
5627
|
+
Util.validateModel(request);
|
|
5628
|
+
let body : {[key: string ]: any} = { };
|
|
5629
|
+
if (!Util.isUnset(request.appId)) {
|
|
5630
|
+
body["appId"] = request.appId;
|
|
5631
|
+
}
|
|
5632
|
+
|
|
5633
|
+
if (!Util.isUnset(request.id)) {
|
|
5634
|
+
body["id"] = request.id;
|
|
5635
|
+
}
|
|
5636
|
+
|
|
5637
|
+
if (!Util.isUnset(request.type)) {
|
|
5638
|
+
body["type"] = request.type;
|
|
5639
|
+
}
|
|
5640
|
+
|
|
5641
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
5642
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
5643
|
+
realHeaders = headers.commonHeaders;
|
|
5644
|
+
}
|
|
5645
|
+
|
|
5646
|
+
if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
|
|
5647
|
+
realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
|
|
5648
|
+
}
|
|
5649
|
+
|
|
5650
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5651
|
+
headers: realHeaders,
|
|
5652
|
+
body: OpenApiUtil.parseToMap(body),
|
|
5653
|
+
});
|
|
5654
|
+
let params = new $OpenApi.Params({
|
|
5655
|
+
action: "IsOrgMicroAppVisibleByUserId",
|
|
5656
|
+
version: "microApp_1.0",
|
|
5657
|
+
protocol: "HTTP",
|
|
5658
|
+
pathname: `/v1.0/microApp/visibleScopes/query`,
|
|
5659
|
+
method: "POST",
|
|
5660
|
+
authType: "AK",
|
|
5661
|
+
style: "ROA",
|
|
5662
|
+
reqBodyType: "none",
|
|
5663
|
+
bodyType: "json",
|
|
5664
|
+
});
|
|
5665
|
+
return $tea.cast<IsOrgMicroAppVisibleByUserIdResponse>(await this.execute(params, req, runtime), new IsOrgMicroAppVisibleByUserIdResponse({}));
|
|
5666
|
+
}
|
|
5667
|
+
|
|
5668
|
+
/**
|
|
5669
|
+
* 判断人员是否在应用的可见范围内
|
|
5670
|
+
*
|
|
5671
|
+
* @param request - IsOrgMicroAppVisibleByUserIdRequest
|
|
5672
|
+
* @returns IsOrgMicroAppVisibleByUserIdResponse
|
|
5673
|
+
*/
|
|
5674
|
+
async isOrgMicroAppVisibleByUserId(request: IsOrgMicroAppVisibleByUserIdRequest): Promise<IsOrgMicroAppVisibleByUserIdResponse> {
|
|
5675
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5676
|
+
let headers = new IsOrgMicroAppVisibleByUserIdHeaders({ });
|
|
5677
|
+
return await this.isOrgMicroAppVisibleByUserIdWithOptions(request, headers, runtime);
|
|
5678
|
+
}
|
|
5679
|
+
|
|
5466
5680
|
/**
|
|
5467
5681
|
* 获取企业所有应用列表
|
|
5468
5682
|
*
|
|
@@ -1302,7 +1302,6 @@ export default class Client extends OpenApi {
|
|
|
1302
1302
|
super(config);
|
|
1303
1303
|
let gatewayClient = new GatewayClient();
|
|
1304
1304
|
this._spi = gatewayClient;
|
|
1305
|
-
this._signatureAlgorithm = "v2";
|
|
1306
1305
|
this._endpointRule = "";
|
|
1307
1306
|
if (Util.empty(this._endpoint)) {
|
|
1308
1307
|
this._endpoint = "api.dingtalk.com";
|