@alicloud/aliding20230426 1.0.0 → 1.2.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 +1447 -0
- package/dist/client.js +2530 -2
- package/dist/client.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +3097 -1
package/src/client.ts
CHANGED
|
@@ -2,11 +2,2391 @@
|
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
import Util from '@alicloud/tea-util';
|
|
5
|
+
import Util, * as $Util from '@alicloud/tea-util';
|
|
6
6
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
7
|
+
import OpenApiUtil from '@alicloud/openapi-util';
|
|
7
8
|
import EndpointUtil from '@alicloud/endpoint-util';
|
|
8
9
|
import * as $tea from '@alicloud/tea-typescript';
|
|
9
10
|
|
|
11
|
+
export class AddWorkspaceDocMembersHeaders extends $tea.Model {
|
|
12
|
+
commonHeaders?: { [key: string]: string };
|
|
13
|
+
accountContext?: AddWorkspaceDocMembersHeadersAccountContext;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
commonHeaders: 'commonHeaders',
|
|
17
|
+
accountContext: 'AccountContext',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static types(): { [key: string]: any } {
|
|
22
|
+
return {
|
|
23
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
24
|
+
accountContext: AddWorkspaceDocMembersHeadersAccountContext,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
constructor(map?: { [key: string]: any }) {
|
|
29
|
+
super(map);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class AddWorkspaceDocMembersShrinkHeaders extends $tea.Model {
|
|
34
|
+
commonHeaders?: { [key: string]: string };
|
|
35
|
+
accountContextShrink?: string;
|
|
36
|
+
static names(): { [key: string]: string } {
|
|
37
|
+
return {
|
|
38
|
+
commonHeaders: 'commonHeaders',
|
|
39
|
+
accountContextShrink: 'AccountContext',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
46
|
+
accountContextShrink: 'string',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class AddWorkspaceDocMembersRequest extends $tea.Model {
|
|
56
|
+
members?: AddWorkspaceDocMembersRequestMembers[];
|
|
57
|
+
nodeId?: string;
|
|
58
|
+
tenantContext?: AddWorkspaceDocMembersRequestTenantContext;
|
|
59
|
+
workspaceId?: string;
|
|
60
|
+
static names(): { [key: string]: string } {
|
|
61
|
+
return {
|
|
62
|
+
members: 'Members',
|
|
63
|
+
nodeId: 'NodeId',
|
|
64
|
+
tenantContext: 'TenantContext',
|
|
65
|
+
workspaceId: 'WorkspaceId',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static types(): { [key: string]: any } {
|
|
70
|
+
return {
|
|
71
|
+
members: { 'type': 'array', 'itemType': AddWorkspaceDocMembersRequestMembers },
|
|
72
|
+
nodeId: 'string',
|
|
73
|
+
tenantContext: AddWorkspaceDocMembersRequestTenantContext,
|
|
74
|
+
workspaceId: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
constructor(map?: { [key: string]: any }) {
|
|
79
|
+
super(map);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class AddWorkspaceDocMembersShrinkRequest extends $tea.Model {
|
|
84
|
+
membersShrink?: string;
|
|
85
|
+
nodeId?: string;
|
|
86
|
+
tenantContextShrink?: string;
|
|
87
|
+
workspaceId?: string;
|
|
88
|
+
static names(): { [key: string]: string } {
|
|
89
|
+
return {
|
|
90
|
+
membersShrink: 'Members',
|
|
91
|
+
nodeId: 'NodeId',
|
|
92
|
+
tenantContextShrink: 'TenantContext',
|
|
93
|
+
workspaceId: 'WorkspaceId',
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
static types(): { [key: string]: any } {
|
|
98
|
+
return {
|
|
99
|
+
membersShrink: 'string',
|
|
100
|
+
nodeId: 'string',
|
|
101
|
+
tenantContextShrink: 'string',
|
|
102
|
+
workspaceId: 'string',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
constructor(map?: { [key: string]: any }) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export class AddWorkspaceDocMembersResponseBody extends $tea.Model {
|
|
112
|
+
requestId?: string;
|
|
113
|
+
static names(): { [key: string]: string } {
|
|
114
|
+
return {
|
|
115
|
+
requestId: 'requestId',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static types(): { [key: string]: any } {
|
|
120
|
+
return {
|
|
121
|
+
requestId: 'string',
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
constructor(map?: { [key: string]: any }) {
|
|
126
|
+
super(map);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export class AddWorkspaceDocMembersResponse extends $tea.Model {
|
|
131
|
+
headers: { [key: string]: string };
|
|
132
|
+
statusCode: number;
|
|
133
|
+
body: AddWorkspaceDocMembersResponseBody;
|
|
134
|
+
static names(): { [key: string]: string } {
|
|
135
|
+
return {
|
|
136
|
+
headers: 'headers',
|
|
137
|
+
statusCode: 'statusCode',
|
|
138
|
+
body: 'body',
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static types(): { [key: string]: any } {
|
|
143
|
+
return {
|
|
144
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
145
|
+
statusCode: 'number',
|
|
146
|
+
body: AddWorkspaceDocMembersResponseBody,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
constructor(map?: { [key: string]: any }) {
|
|
151
|
+
super(map);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export class AddWorkspaceMembersHeaders extends $tea.Model {
|
|
156
|
+
commonHeaders?: { [key: string]: string };
|
|
157
|
+
accountContext?: AddWorkspaceMembersHeadersAccountContext;
|
|
158
|
+
static names(): { [key: string]: string } {
|
|
159
|
+
return {
|
|
160
|
+
commonHeaders: 'commonHeaders',
|
|
161
|
+
accountContext: 'AccountContext',
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
static types(): { [key: string]: any } {
|
|
166
|
+
return {
|
|
167
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
168
|
+
accountContext: AddWorkspaceMembersHeadersAccountContext,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
constructor(map?: { [key: string]: any }) {
|
|
173
|
+
super(map);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export class AddWorkspaceMembersShrinkHeaders extends $tea.Model {
|
|
178
|
+
commonHeaders?: { [key: string]: string };
|
|
179
|
+
accountContextShrink?: string;
|
|
180
|
+
static names(): { [key: string]: string } {
|
|
181
|
+
return {
|
|
182
|
+
commonHeaders: 'commonHeaders',
|
|
183
|
+
accountContextShrink: 'AccountContext',
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static types(): { [key: string]: any } {
|
|
188
|
+
return {
|
|
189
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
190
|
+
accountContextShrink: 'string',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
constructor(map?: { [key: string]: any }) {
|
|
195
|
+
super(map);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export class AddWorkspaceMembersRequest extends $tea.Model {
|
|
200
|
+
members?: AddWorkspaceMembersRequestMembers[];
|
|
201
|
+
tenantContext?: AddWorkspaceMembersRequestTenantContext;
|
|
202
|
+
workspaceId?: string;
|
|
203
|
+
static names(): { [key: string]: string } {
|
|
204
|
+
return {
|
|
205
|
+
members: 'Members',
|
|
206
|
+
tenantContext: 'TenantContext',
|
|
207
|
+
workspaceId: 'WorkspaceId',
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
static types(): { [key: string]: any } {
|
|
212
|
+
return {
|
|
213
|
+
members: { 'type': 'array', 'itemType': AddWorkspaceMembersRequestMembers },
|
|
214
|
+
tenantContext: AddWorkspaceMembersRequestTenantContext,
|
|
215
|
+
workspaceId: 'string',
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
constructor(map?: { [key: string]: any }) {
|
|
220
|
+
super(map);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export class AddWorkspaceMembersShrinkRequest extends $tea.Model {
|
|
225
|
+
membersShrink?: string;
|
|
226
|
+
tenantContextShrink?: string;
|
|
227
|
+
workspaceId?: string;
|
|
228
|
+
static names(): { [key: string]: string } {
|
|
229
|
+
return {
|
|
230
|
+
membersShrink: 'Members',
|
|
231
|
+
tenantContextShrink: 'TenantContext',
|
|
232
|
+
workspaceId: 'WorkspaceId',
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
static types(): { [key: string]: any } {
|
|
237
|
+
return {
|
|
238
|
+
membersShrink: 'string',
|
|
239
|
+
tenantContextShrink: 'string',
|
|
240
|
+
workspaceId: 'string',
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
constructor(map?: { [key: string]: any }) {
|
|
245
|
+
super(map);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export class AddWorkspaceMembersResponseBody extends $tea.Model {
|
|
250
|
+
notInOrgList?: string[];
|
|
251
|
+
requestId?: string;
|
|
252
|
+
static names(): { [key: string]: string } {
|
|
253
|
+
return {
|
|
254
|
+
notInOrgList: 'NotInOrgList',
|
|
255
|
+
requestId: 'requestId',
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
static types(): { [key: string]: any } {
|
|
260
|
+
return {
|
|
261
|
+
notInOrgList: { 'type': 'array', 'itemType': 'string' },
|
|
262
|
+
requestId: 'string',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
constructor(map?: { [key: string]: any }) {
|
|
267
|
+
super(map);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export class AddWorkspaceMembersResponse extends $tea.Model {
|
|
272
|
+
headers: { [key: string]: string };
|
|
273
|
+
statusCode: number;
|
|
274
|
+
body: AddWorkspaceMembersResponseBody;
|
|
275
|
+
static names(): { [key: string]: string } {
|
|
276
|
+
return {
|
|
277
|
+
headers: 'headers',
|
|
278
|
+
statusCode: 'statusCode',
|
|
279
|
+
body: 'body',
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static types(): { [key: string]: any } {
|
|
284
|
+
return {
|
|
285
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
286
|
+
statusCode: 'number',
|
|
287
|
+
body: AddWorkspaceMembersResponseBody,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
constructor(map?: { [key: string]: any }) {
|
|
292
|
+
super(map);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export class CreateSheetHeaders extends $tea.Model {
|
|
297
|
+
commonHeaders?: { [key: string]: string };
|
|
298
|
+
accountContext?: CreateSheetHeadersAccountContext;
|
|
299
|
+
static names(): { [key: string]: string } {
|
|
300
|
+
return {
|
|
301
|
+
commonHeaders: 'commonHeaders',
|
|
302
|
+
accountContext: 'AccountContext',
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
static types(): { [key: string]: any } {
|
|
307
|
+
return {
|
|
308
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
309
|
+
accountContext: CreateSheetHeadersAccountContext,
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
constructor(map?: { [key: string]: any }) {
|
|
314
|
+
super(map);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export class CreateSheetShrinkHeaders extends $tea.Model {
|
|
319
|
+
commonHeaders?: { [key: string]: string };
|
|
320
|
+
accountContextShrink?: string;
|
|
321
|
+
static names(): { [key: string]: string } {
|
|
322
|
+
return {
|
|
323
|
+
commonHeaders: 'commonHeaders',
|
|
324
|
+
accountContextShrink: 'AccountContext',
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
static types(): { [key: string]: any } {
|
|
329
|
+
return {
|
|
330
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
331
|
+
accountContextShrink: 'string',
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
constructor(map?: { [key: string]: any }) {
|
|
336
|
+
super(map);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export class CreateSheetRequest extends $tea.Model {
|
|
341
|
+
name?: string;
|
|
342
|
+
tenantContext?: CreateSheetRequestTenantContext;
|
|
343
|
+
workbookId?: string;
|
|
344
|
+
static names(): { [key: string]: string } {
|
|
345
|
+
return {
|
|
346
|
+
name: 'Name',
|
|
347
|
+
tenantContext: 'TenantContext',
|
|
348
|
+
workbookId: 'WorkbookId',
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
static types(): { [key: string]: any } {
|
|
353
|
+
return {
|
|
354
|
+
name: 'string',
|
|
355
|
+
tenantContext: CreateSheetRequestTenantContext,
|
|
356
|
+
workbookId: 'string',
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
constructor(map?: { [key: string]: any }) {
|
|
361
|
+
super(map);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export class CreateSheetShrinkRequest extends $tea.Model {
|
|
366
|
+
name?: string;
|
|
367
|
+
tenantContextShrink?: string;
|
|
368
|
+
workbookId?: string;
|
|
369
|
+
static names(): { [key: string]: string } {
|
|
370
|
+
return {
|
|
371
|
+
name: 'Name',
|
|
372
|
+
tenantContextShrink: 'TenantContext',
|
|
373
|
+
workbookId: 'WorkbookId',
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
static types(): { [key: string]: any } {
|
|
378
|
+
return {
|
|
379
|
+
name: 'string',
|
|
380
|
+
tenantContextShrink: 'string',
|
|
381
|
+
workbookId: 'string',
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
constructor(map?: { [key: string]: any }) {
|
|
386
|
+
super(map);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export class CreateSheetResponseBody extends $tea.Model {
|
|
391
|
+
id?: string;
|
|
392
|
+
name?: string;
|
|
393
|
+
requestId?: string;
|
|
394
|
+
visibility?: string;
|
|
395
|
+
static names(): { [key: string]: string } {
|
|
396
|
+
return {
|
|
397
|
+
id: 'id',
|
|
398
|
+
name: 'name',
|
|
399
|
+
requestId: 'requestId',
|
|
400
|
+
visibility: 'visibility',
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
static types(): { [key: string]: any } {
|
|
405
|
+
return {
|
|
406
|
+
id: 'string',
|
|
407
|
+
name: 'string',
|
|
408
|
+
requestId: 'string',
|
|
409
|
+
visibility: 'string',
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
constructor(map?: { [key: string]: any }) {
|
|
414
|
+
super(map);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export class CreateSheetResponse extends $tea.Model {
|
|
419
|
+
headers: { [key: string]: string };
|
|
420
|
+
statusCode: number;
|
|
421
|
+
body: CreateSheetResponseBody;
|
|
422
|
+
static names(): { [key: string]: string } {
|
|
423
|
+
return {
|
|
424
|
+
headers: 'headers',
|
|
425
|
+
statusCode: 'statusCode',
|
|
426
|
+
body: 'body',
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
static types(): { [key: string]: any } {
|
|
431
|
+
return {
|
|
432
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
433
|
+
statusCode: 'number',
|
|
434
|
+
body: CreateSheetResponseBody,
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
constructor(map?: { [key: string]: any }) {
|
|
439
|
+
super(map);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export class CreateWorkspaceHeaders extends $tea.Model {
|
|
444
|
+
commonHeaders?: { [key: string]: string };
|
|
445
|
+
accountContext?: CreateWorkspaceHeadersAccountContext;
|
|
446
|
+
static names(): { [key: string]: string } {
|
|
447
|
+
return {
|
|
448
|
+
commonHeaders: 'commonHeaders',
|
|
449
|
+
accountContext: 'AccountContext',
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
static types(): { [key: string]: any } {
|
|
454
|
+
return {
|
|
455
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
456
|
+
accountContext: CreateWorkspaceHeadersAccountContext,
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
constructor(map?: { [key: string]: any }) {
|
|
461
|
+
super(map);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export class CreateWorkspaceShrinkHeaders extends $tea.Model {
|
|
466
|
+
commonHeaders?: { [key: string]: string };
|
|
467
|
+
accountContextShrink?: string;
|
|
468
|
+
static names(): { [key: string]: string } {
|
|
469
|
+
return {
|
|
470
|
+
commonHeaders: 'commonHeaders',
|
|
471
|
+
accountContextShrink: 'AccountContext',
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
static types(): { [key: string]: any } {
|
|
476
|
+
return {
|
|
477
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
478
|
+
accountContextShrink: 'string',
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
constructor(map?: { [key: string]: any }) {
|
|
483
|
+
super(map);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export class CreateWorkspaceRequest extends $tea.Model {
|
|
488
|
+
description?: string;
|
|
489
|
+
name?: string;
|
|
490
|
+
tenantContext?: CreateWorkspaceRequestTenantContext;
|
|
491
|
+
static names(): { [key: string]: string } {
|
|
492
|
+
return {
|
|
493
|
+
description: 'Description',
|
|
494
|
+
name: 'Name',
|
|
495
|
+
tenantContext: 'TenantContext',
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
static types(): { [key: string]: any } {
|
|
500
|
+
return {
|
|
501
|
+
description: 'string',
|
|
502
|
+
name: 'string',
|
|
503
|
+
tenantContext: CreateWorkspaceRequestTenantContext,
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
constructor(map?: { [key: string]: any }) {
|
|
508
|
+
super(map);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export class CreateWorkspaceShrinkRequest extends $tea.Model {
|
|
513
|
+
description?: string;
|
|
514
|
+
name?: string;
|
|
515
|
+
tenantContextShrink?: string;
|
|
516
|
+
static names(): { [key: string]: string } {
|
|
517
|
+
return {
|
|
518
|
+
description: 'Description',
|
|
519
|
+
name: 'Name',
|
|
520
|
+
tenantContextShrink: 'TenantContext',
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
static types(): { [key: string]: any } {
|
|
525
|
+
return {
|
|
526
|
+
description: 'string',
|
|
527
|
+
name: 'string',
|
|
528
|
+
tenantContextShrink: 'string',
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
constructor(map?: { [key: string]: any }) {
|
|
533
|
+
super(map);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export class CreateWorkspaceResponseBody extends $tea.Model {
|
|
538
|
+
description?: string;
|
|
539
|
+
name?: string;
|
|
540
|
+
requestId?: string;
|
|
541
|
+
url?: string;
|
|
542
|
+
workspaceId?: string;
|
|
543
|
+
static names(): { [key: string]: string } {
|
|
544
|
+
return {
|
|
545
|
+
description: 'description',
|
|
546
|
+
name: 'name',
|
|
547
|
+
requestId: 'requestId',
|
|
548
|
+
url: 'url',
|
|
549
|
+
workspaceId: 'workspaceId',
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
static types(): { [key: string]: any } {
|
|
554
|
+
return {
|
|
555
|
+
description: 'string',
|
|
556
|
+
name: 'string',
|
|
557
|
+
requestId: 'string',
|
|
558
|
+
url: 'string',
|
|
559
|
+
workspaceId: 'string',
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
constructor(map?: { [key: string]: any }) {
|
|
564
|
+
super(map);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export class CreateWorkspaceResponse extends $tea.Model {
|
|
569
|
+
headers: { [key: string]: string };
|
|
570
|
+
statusCode: number;
|
|
571
|
+
body: CreateWorkspaceResponseBody;
|
|
572
|
+
static names(): { [key: string]: string } {
|
|
573
|
+
return {
|
|
574
|
+
headers: 'headers',
|
|
575
|
+
statusCode: 'statusCode',
|
|
576
|
+
body: 'body',
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
static types(): { [key: string]: any } {
|
|
581
|
+
return {
|
|
582
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
583
|
+
statusCode: 'number',
|
|
584
|
+
body: CreateWorkspaceResponseBody,
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
constructor(map?: { [key: string]: any }) {
|
|
589
|
+
super(map);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export class CreateWorkspaceDocHeaders extends $tea.Model {
|
|
594
|
+
commonHeaders?: { [key: string]: string };
|
|
595
|
+
accountContext?: CreateWorkspaceDocHeadersAccountContext;
|
|
596
|
+
static names(): { [key: string]: string } {
|
|
597
|
+
return {
|
|
598
|
+
commonHeaders: 'commonHeaders',
|
|
599
|
+
accountContext: 'AccountContext',
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
static types(): { [key: string]: any } {
|
|
604
|
+
return {
|
|
605
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
606
|
+
accountContext: CreateWorkspaceDocHeadersAccountContext,
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
constructor(map?: { [key: string]: any }) {
|
|
611
|
+
super(map);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export class CreateWorkspaceDocShrinkHeaders extends $tea.Model {
|
|
616
|
+
commonHeaders?: { [key: string]: string };
|
|
617
|
+
accountContextShrink?: string;
|
|
618
|
+
static names(): { [key: string]: string } {
|
|
619
|
+
return {
|
|
620
|
+
commonHeaders: 'commonHeaders',
|
|
621
|
+
accountContextShrink: 'AccountContext',
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
static types(): { [key: string]: any } {
|
|
626
|
+
return {
|
|
627
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
628
|
+
accountContextShrink: 'string',
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
constructor(map?: { [key: string]: any }) {
|
|
633
|
+
super(map);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export class CreateWorkspaceDocRequest extends $tea.Model {
|
|
638
|
+
docType?: string;
|
|
639
|
+
name?: string;
|
|
640
|
+
parentNodeId?: string;
|
|
641
|
+
templateId?: string;
|
|
642
|
+
templateType?: string;
|
|
643
|
+
tenantContext?: CreateWorkspaceDocRequestTenantContext;
|
|
644
|
+
workspaceId?: string;
|
|
645
|
+
static names(): { [key: string]: string } {
|
|
646
|
+
return {
|
|
647
|
+
docType: 'DocType',
|
|
648
|
+
name: 'Name',
|
|
649
|
+
parentNodeId: 'ParentNodeId',
|
|
650
|
+
templateId: 'TemplateId',
|
|
651
|
+
templateType: 'TemplateType',
|
|
652
|
+
tenantContext: 'TenantContext',
|
|
653
|
+
workspaceId: 'WorkspaceId',
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
static types(): { [key: string]: any } {
|
|
658
|
+
return {
|
|
659
|
+
docType: 'string',
|
|
660
|
+
name: 'string',
|
|
661
|
+
parentNodeId: 'string',
|
|
662
|
+
templateId: 'string',
|
|
663
|
+
templateType: 'string',
|
|
664
|
+
tenantContext: CreateWorkspaceDocRequestTenantContext,
|
|
665
|
+
workspaceId: 'string',
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
constructor(map?: { [key: string]: any }) {
|
|
670
|
+
super(map);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export class CreateWorkspaceDocShrinkRequest extends $tea.Model {
|
|
675
|
+
docType?: string;
|
|
676
|
+
name?: string;
|
|
677
|
+
parentNodeId?: string;
|
|
678
|
+
templateId?: string;
|
|
679
|
+
templateType?: string;
|
|
680
|
+
tenantContextShrink?: string;
|
|
681
|
+
workspaceId?: string;
|
|
682
|
+
static names(): { [key: string]: string } {
|
|
683
|
+
return {
|
|
684
|
+
docType: 'DocType',
|
|
685
|
+
name: 'Name',
|
|
686
|
+
parentNodeId: 'ParentNodeId',
|
|
687
|
+
templateId: 'TemplateId',
|
|
688
|
+
templateType: 'TemplateType',
|
|
689
|
+
tenantContextShrink: 'TenantContext',
|
|
690
|
+
workspaceId: 'WorkspaceId',
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
static types(): { [key: string]: any } {
|
|
695
|
+
return {
|
|
696
|
+
docType: 'string',
|
|
697
|
+
name: 'string',
|
|
698
|
+
parentNodeId: 'string',
|
|
699
|
+
templateId: 'string',
|
|
700
|
+
templateType: 'string',
|
|
701
|
+
tenantContextShrink: 'string',
|
|
702
|
+
workspaceId: 'string',
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
constructor(map?: { [key: string]: any }) {
|
|
707
|
+
super(map);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export class CreateWorkspaceDocResponseBody extends $tea.Model {
|
|
712
|
+
docKey?: string;
|
|
713
|
+
nodeId?: string;
|
|
714
|
+
requestId?: string;
|
|
715
|
+
url?: string;
|
|
716
|
+
workspaceId?: string;
|
|
717
|
+
static names(): { [key: string]: string } {
|
|
718
|
+
return {
|
|
719
|
+
docKey: 'docKey',
|
|
720
|
+
nodeId: 'nodeId',
|
|
721
|
+
requestId: 'requestId',
|
|
722
|
+
url: 'url',
|
|
723
|
+
workspaceId: 'workspaceId',
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
static types(): { [key: string]: any } {
|
|
728
|
+
return {
|
|
729
|
+
docKey: 'string',
|
|
730
|
+
nodeId: 'string',
|
|
731
|
+
requestId: 'string',
|
|
732
|
+
url: 'string',
|
|
733
|
+
workspaceId: 'string',
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
constructor(map?: { [key: string]: any }) {
|
|
738
|
+
super(map);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export class CreateWorkspaceDocResponse extends $tea.Model {
|
|
743
|
+
headers: { [key: string]: string };
|
|
744
|
+
statusCode: number;
|
|
745
|
+
body: CreateWorkspaceDocResponseBody;
|
|
746
|
+
static names(): { [key: string]: string } {
|
|
747
|
+
return {
|
|
748
|
+
headers: 'headers',
|
|
749
|
+
statusCode: 'statusCode',
|
|
750
|
+
body: 'body',
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
static types(): { [key: string]: any } {
|
|
755
|
+
return {
|
|
756
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
757
|
+
statusCode: 'number',
|
|
758
|
+
body: CreateWorkspaceDocResponseBody,
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
constructor(map?: { [key: string]: any }) {
|
|
763
|
+
super(map);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export class DeleteWorkspaceDocMembersHeaders extends $tea.Model {
|
|
768
|
+
commonHeaders?: { [key: string]: string };
|
|
769
|
+
accountContext?: DeleteWorkspaceDocMembersHeadersAccountContext;
|
|
770
|
+
static names(): { [key: string]: string } {
|
|
771
|
+
return {
|
|
772
|
+
commonHeaders: 'commonHeaders',
|
|
773
|
+
accountContext: 'AccountContext',
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
static types(): { [key: string]: any } {
|
|
778
|
+
return {
|
|
779
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
780
|
+
accountContext: DeleteWorkspaceDocMembersHeadersAccountContext,
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
constructor(map?: { [key: string]: any }) {
|
|
785
|
+
super(map);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export class DeleteWorkspaceDocMembersShrinkHeaders extends $tea.Model {
|
|
790
|
+
commonHeaders?: { [key: string]: string };
|
|
791
|
+
accountContextShrink?: string;
|
|
792
|
+
static names(): { [key: string]: string } {
|
|
793
|
+
return {
|
|
794
|
+
commonHeaders: 'commonHeaders',
|
|
795
|
+
accountContextShrink: 'AccountContext',
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
static types(): { [key: string]: any } {
|
|
800
|
+
return {
|
|
801
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
802
|
+
accountContextShrink: 'string',
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
constructor(map?: { [key: string]: any }) {
|
|
807
|
+
super(map);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export class DeleteWorkspaceDocMembersRequest extends $tea.Model {
|
|
812
|
+
members?: DeleteWorkspaceDocMembersRequestMembers[];
|
|
813
|
+
nodeId?: string;
|
|
814
|
+
tenantContext?: DeleteWorkspaceDocMembersRequestTenantContext;
|
|
815
|
+
workspaceId?: string;
|
|
816
|
+
static names(): { [key: string]: string } {
|
|
817
|
+
return {
|
|
818
|
+
members: 'Members',
|
|
819
|
+
nodeId: 'NodeId',
|
|
820
|
+
tenantContext: 'TenantContext',
|
|
821
|
+
workspaceId: 'WorkspaceId',
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
static types(): { [key: string]: any } {
|
|
826
|
+
return {
|
|
827
|
+
members: { 'type': 'array', 'itemType': DeleteWorkspaceDocMembersRequestMembers },
|
|
828
|
+
nodeId: 'string',
|
|
829
|
+
tenantContext: DeleteWorkspaceDocMembersRequestTenantContext,
|
|
830
|
+
workspaceId: 'string',
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
constructor(map?: { [key: string]: any }) {
|
|
835
|
+
super(map);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export class DeleteWorkspaceDocMembersShrinkRequest extends $tea.Model {
|
|
840
|
+
membersShrink?: string;
|
|
841
|
+
nodeId?: string;
|
|
842
|
+
tenantContextShrink?: string;
|
|
843
|
+
workspaceId?: string;
|
|
844
|
+
static names(): { [key: string]: string } {
|
|
845
|
+
return {
|
|
846
|
+
membersShrink: 'Members',
|
|
847
|
+
nodeId: 'NodeId',
|
|
848
|
+
tenantContextShrink: 'TenantContext',
|
|
849
|
+
workspaceId: 'WorkspaceId',
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
static types(): { [key: string]: any } {
|
|
854
|
+
return {
|
|
855
|
+
membersShrink: 'string',
|
|
856
|
+
nodeId: 'string',
|
|
857
|
+
tenantContextShrink: 'string',
|
|
858
|
+
workspaceId: 'string',
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
constructor(map?: { [key: string]: any }) {
|
|
863
|
+
super(map);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export class DeleteWorkspaceDocMembersResponseBody extends $tea.Model {
|
|
868
|
+
requestId?: string;
|
|
869
|
+
static names(): { [key: string]: string } {
|
|
870
|
+
return {
|
|
871
|
+
requestId: 'requestId',
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
static types(): { [key: string]: any } {
|
|
876
|
+
return {
|
|
877
|
+
requestId: 'string',
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
constructor(map?: { [key: string]: any }) {
|
|
882
|
+
super(map);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export class DeleteWorkspaceDocMembersResponse extends $tea.Model {
|
|
887
|
+
headers: { [key: string]: string };
|
|
888
|
+
statusCode: number;
|
|
889
|
+
body: DeleteWorkspaceDocMembersResponseBody;
|
|
890
|
+
static names(): { [key: string]: string } {
|
|
891
|
+
return {
|
|
892
|
+
headers: 'headers',
|
|
893
|
+
statusCode: 'statusCode',
|
|
894
|
+
body: 'body',
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
static types(): { [key: string]: any } {
|
|
899
|
+
return {
|
|
900
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
901
|
+
statusCode: 'number',
|
|
902
|
+
body: DeleteWorkspaceDocMembersResponseBody,
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
constructor(map?: { [key: string]: any }) {
|
|
907
|
+
super(map);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export class DeleteWorkspaceMembersHeaders extends $tea.Model {
|
|
912
|
+
commonHeaders?: { [key: string]: string };
|
|
913
|
+
accountContext?: DeleteWorkspaceMembersHeadersAccountContext;
|
|
914
|
+
static names(): { [key: string]: string } {
|
|
915
|
+
return {
|
|
916
|
+
commonHeaders: 'commonHeaders',
|
|
917
|
+
accountContext: 'AccountContext',
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
static types(): { [key: string]: any } {
|
|
922
|
+
return {
|
|
923
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
924
|
+
accountContext: DeleteWorkspaceMembersHeadersAccountContext,
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
constructor(map?: { [key: string]: any }) {
|
|
929
|
+
super(map);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
export class DeleteWorkspaceMembersShrinkHeaders extends $tea.Model {
|
|
934
|
+
commonHeaders?: { [key: string]: string };
|
|
935
|
+
accountContextShrink?: string;
|
|
936
|
+
static names(): { [key: string]: string } {
|
|
937
|
+
return {
|
|
938
|
+
commonHeaders: 'commonHeaders',
|
|
939
|
+
accountContextShrink: 'AccountContext',
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
static types(): { [key: string]: any } {
|
|
944
|
+
return {
|
|
945
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
946
|
+
accountContextShrink: 'string',
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
constructor(map?: { [key: string]: any }) {
|
|
951
|
+
super(map);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export class DeleteWorkspaceMembersRequest extends $tea.Model {
|
|
956
|
+
members?: DeleteWorkspaceMembersRequestMembers[];
|
|
957
|
+
tenantContext?: DeleteWorkspaceMembersRequestTenantContext;
|
|
958
|
+
workspaceId?: string;
|
|
959
|
+
static names(): { [key: string]: string } {
|
|
960
|
+
return {
|
|
961
|
+
members: 'Members',
|
|
962
|
+
tenantContext: 'TenantContext',
|
|
963
|
+
workspaceId: 'WorkspaceId',
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
static types(): { [key: string]: any } {
|
|
968
|
+
return {
|
|
969
|
+
members: { 'type': 'array', 'itemType': DeleteWorkspaceMembersRequestMembers },
|
|
970
|
+
tenantContext: DeleteWorkspaceMembersRequestTenantContext,
|
|
971
|
+
workspaceId: 'string',
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
constructor(map?: { [key: string]: any }) {
|
|
976
|
+
super(map);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export class DeleteWorkspaceMembersShrinkRequest extends $tea.Model {
|
|
981
|
+
membersShrink?: string;
|
|
982
|
+
tenantContextShrink?: string;
|
|
983
|
+
workspaceId?: string;
|
|
984
|
+
static names(): { [key: string]: string } {
|
|
985
|
+
return {
|
|
986
|
+
membersShrink: 'Members',
|
|
987
|
+
tenantContextShrink: 'TenantContext',
|
|
988
|
+
workspaceId: 'WorkspaceId',
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
static types(): { [key: string]: any } {
|
|
993
|
+
return {
|
|
994
|
+
membersShrink: 'string',
|
|
995
|
+
tenantContextShrink: 'string',
|
|
996
|
+
workspaceId: 'string',
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
constructor(map?: { [key: string]: any }) {
|
|
1001
|
+
super(map);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
export class DeleteWorkspaceMembersResponseBody extends $tea.Model {
|
|
1006
|
+
requestId?: string;
|
|
1007
|
+
static names(): { [key: string]: string } {
|
|
1008
|
+
return {
|
|
1009
|
+
requestId: 'requestId',
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
static types(): { [key: string]: any } {
|
|
1014
|
+
return {
|
|
1015
|
+
requestId: 'string',
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
constructor(map?: { [key: string]: any }) {
|
|
1020
|
+
super(map);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
export class DeleteWorkspaceMembersResponse extends $tea.Model {
|
|
1025
|
+
headers: { [key: string]: string };
|
|
1026
|
+
statusCode: number;
|
|
1027
|
+
body: DeleteWorkspaceMembersResponseBody;
|
|
1028
|
+
static names(): { [key: string]: string } {
|
|
1029
|
+
return {
|
|
1030
|
+
headers: 'headers',
|
|
1031
|
+
statusCode: 'statusCode',
|
|
1032
|
+
body: 'body',
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
static types(): { [key: string]: any } {
|
|
1037
|
+
return {
|
|
1038
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1039
|
+
statusCode: 'number',
|
|
1040
|
+
body: DeleteWorkspaceMembersResponseBody,
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
constructor(map?: { [key: string]: any }) {
|
|
1045
|
+
super(map);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export class GetUserHeaders extends $tea.Model {
|
|
1050
|
+
commonHeaders?: { [key: string]: string };
|
|
1051
|
+
accountContext?: GetUserHeadersAccountContext;
|
|
1052
|
+
static names(): { [key: string]: string } {
|
|
1053
|
+
return {
|
|
1054
|
+
commonHeaders: 'commonHeaders',
|
|
1055
|
+
accountContext: 'AccountContext',
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
static types(): { [key: string]: any } {
|
|
1060
|
+
return {
|
|
1061
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1062
|
+
accountContext: GetUserHeadersAccountContext,
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
constructor(map?: { [key: string]: any }) {
|
|
1067
|
+
super(map);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
export class GetUserShrinkHeaders extends $tea.Model {
|
|
1072
|
+
commonHeaders?: { [key: string]: string };
|
|
1073
|
+
accountContextShrink?: string;
|
|
1074
|
+
static names(): { [key: string]: string } {
|
|
1075
|
+
return {
|
|
1076
|
+
commonHeaders: 'commonHeaders',
|
|
1077
|
+
accountContextShrink: 'AccountContext',
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
static types(): { [key: string]: any } {
|
|
1082
|
+
return {
|
|
1083
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1084
|
+
accountContextShrink: 'string',
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
constructor(map?: { [key: string]: any }) {
|
|
1089
|
+
super(map);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
export class GetUserRequest extends $tea.Model {
|
|
1094
|
+
tenantContext?: GetUserRequestTenantContext;
|
|
1095
|
+
language?: string;
|
|
1096
|
+
static names(): { [key: string]: string } {
|
|
1097
|
+
return {
|
|
1098
|
+
tenantContext: 'TenantContext',
|
|
1099
|
+
language: 'language',
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
static types(): { [key: string]: any } {
|
|
1104
|
+
return {
|
|
1105
|
+
tenantContext: GetUserRequestTenantContext,
|
|
1106
|
+
language: 'string',
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
constructor(map?: { [key: string]: any }) {
|
|
1111
|
+
super(map);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export class GetUserShrinkRequest extends $tea.Model {
|
|
1116
|
+
tenantContextShrink?: string;
|
|
1117
|
+
language?: string;
|
|
1118
|
+
static names(): { [key: string]: string } {
|
|
1119
|
+
return {
|
|
1120
|
+
tenantContextShrink: 'TenantContext',
|
|
1121
|
+
language: 'language',
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
static types(): { [key: string]: any } {
|
|
1126
|
+
return {
|
|
1127
|
+
tenantContextShrink: 'string',
|
|
1128
|
+
language: 'string',
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
constructor(map?: { [key: string]: any }) {
|
|
1133
|
+
super(map);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export class GetUserResponseBody extends $tea.Model {
|
|
1138
|
+
active?: boolean;
|
|
1139
|
+
admin?: boolean;
|
|
1140
|
+
avatar?: string;
|
|
1141
|
+
boss?: boolean;
|
|
1142
|
+
deptIdList?: number[];
|
|
1143
|
+
deptOrderList?: GetUserResponseBodyDeptOrderList[];
|
|
1144
|
+
email?: string;
|
|
1145
|
+
exclusiveAccount?: boolean;
|
|
1146
|
+
exclusiveAccountCorpId?: string;
|
|
1147
|
+
exclusiveAccountCorpName?: string;
|
|
1148
|
+
exclusiveAccountType?: string;
|
|
1149
|
+
extension?: string;
|
|
1150
|
+
hideMobile?: boolean;
|
|
1151
|
+
hiredDate?: number;
|
|
1152
|
+
jobNumber?: string;
|
|
1153
|
+
leaderInDept?: GetUserResponseBodyLeaderInDept[];
|
|
1154
|
+
loginId?: string;
|
|
1155
|
+
managerUserid?: string;
|
|
1156
|
+
mobile?: string;
|
|
1157
|
+
name?: string;
|
|
1158
|
+
nickname?: string;
|
|
1159
|
+
orgEmail?: string;
|
|
1160
|
+
realAuthed?: boolean;
|
|
1161
|
+
remark?: string;
|
|
1162
|
+
requestId?: string;
|
|
1163
|
+
roleList?: GetUserResponseBodyRoleList[];
|
|
1164
|
+
senior?: boolean;
|
|
1165
|
+
stateCode?: string;
|
|
1166
|
+
telephone?: string;
|
|
1167
|
+
title?: string;
|
|
1168
|
+
unionEmpExt?: GetUserResponseBodyUnionEmpExt;
|
|
1169
|
+
userid?: string;
|
|
1170
|
+
workPlace?: string;
|
|
1171
|
+
static names(): { [key: string]: string } {
|
|
1172
|
+
return {
|
|
1173
|
+
active: 'active',
|
|
1174
|
+
admin: 'admin',
|
|
1175
|
+
avatar: 'avatar',
|
|
1176
|
+
boss: 'boss',
|
|
1177
|
+
deptIdList: 'deptIdList',
|
|
1178
|
+
deptOrderList: 'deptOrderList',
|
|
1179
|
+
email: 'email',
|
|
1180
|
+
exclusiveAccount: 'exclusiveAccount',
|
|
1181
|
+
exclusiveAccountCorpId: 'exclusiveAccountCorpId',
|
|
1182
|
+
exclusiveAccountCorpName: 'exclusiveAccountCorpName',
|
|
1183
|
+
exclusiveAccountType: 'exclusiveAccountType',
|
|
1184
|
+
extension: 'extension',
|
|
1185
|
+
hideMobile: 'hideMobile',
|
|
1186
|
+
hiredDate: 'hiredDate',
|
|
1187
|
+
jobNumber: 'jobNumber',
|
|
1188
|
+
leaderInDept: 'leaderInDept',
|
|
1189
|
+
loginId: 'loginId',
|
|
1190
|
+
managerUserid: 'managerUserid',
|
|
1191
|
+
mobile: 'mobile',
|
|
1192
|
+
name: 'name',
|
|
1193
|
+
nickname: 'nickname',
|
|
1194
|
+
orgEmail: 'orgEmail',
|
|
1195
|
+
realAuthed: 'realAuthed',
|
|
1196
|
+
remark: 'remark',
|
|
1197
|
+
requestId: 'requestId',
|
|
1198
|
+
roleList: 'roleList',
|
|
1199
|
+
senior: 'senior',
|
|
1200
|
+
stateCode: 'stateCode',
|
|
1201
|
+
telephone: 'telephone',
|
|
1202
|
+
title: 'title',
|
|
1203
|
+
unionEmpExt: 'unionEmpExt',
|
|
1204
|
+
userid: 'userid',
|
|
1205
|
+
workPlace: 'workPlace',
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
static types(): { [key: string]: any } {
|
|
1210
|
+
return {
|
|
1211
|
+
active: 'boolean',
|
|
1212
|
+
admin: 'boolean',
|
|
1213
|
+
avatar: 'string',
|
|
1214
|
+
boss: 'boolean',
|
|
1215
|
+
deptIdList: { 'type': 'array', 'itemType': 'number' },
|
|
1216
|
+
deptOrderList: { 'type': 'array', 'itemType': GetUserResponseBodyDeptOrderList },
|
|
1217
|
+
email: 'string',
|
|
1218
|
+
exclusiveAccount: 'boolean',
|
|
1219
|
+
exclusiveAccountCorpId: 'string',
|
|
1220
|
+
exclusiveAccountCorpName: 'string',
|
|
1221
|
+
exclusiveAccountType: 'string',
|
|
1222
|
+
extension: 'string',
|
|
1223
|
+
hideMobile: 'boolean',
|
|
1224
|
+
hiredDate: 'number',
|
|
1225
|
+
jobNumber: 'string',
|
|
1226
|
+
leaderInDept: { 'type': 'array', 'itemType': GetUserResponseBodyLeaderInDept },
|
|
1227
|
+
loginId: 'string',
|
|
1228
|
+
managerUserid: 'string',
|
|
1229
|
+
mobile: 'string',
|
|
1230
|
+
name: 'string',
|
|
1231
|
+
nickname: 'string',
|
|
1232
|
+
orgEmail: 'string',
|
|
1233
|
+
realAuthed: 'boolean',
|
|
1234
|
+
remark: 'string',
|
|
1235
|
+
requestId: 'string',
|
|
1236
|
+
roleList: { 'type': 'array', 'itemType': GetUserResponseBodyRoleList },
|
|
1237
|
+
senior: 'boolean',
|
|
1238
|
+
stateCode: 'string',
|
|
1239
|
+
telephone: 'string',
|
|
1240
|
+
title: 'string',
|
|
1241
|
+
unionEmpExt: GetUserResponseBodyUnionEmpExt,
|
|
1242
|
+
userid: 'string',
|
|
1243
|
+
workPlace: 'string',
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
constructor(map?: { [key: string]: any }) {
|
|
1248
|
+
super(map);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export class GetUserResponse extends $tea.Model {
|
|
1253
|
+
headers: { [key: string]: string };
|
|
1254
|
+
statusCode: number;
|
|
1255
|
+
body: GetUserResponseBody;
|
|
1256
|
+
static names(): { [key: string]: string } {
|
|
1257
|
+
return {
|
|
1258
|
+
headers: 'headers',
|
|
1259
|
+
statusCode: 'statusCode',
|
|
1260
|
+
body: 'body',
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
static types(): { [key: string]: any } {
|
|
1265
|
+
return {
|
|
1266
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1267
|
+
statusCode: 'number',
|
|
1268
|
+
body: GetUserResponseBody,
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
constructor(map?: { [key: string]: any }) {
|
|
1273
|
+
super(map);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
export class InsertRowsBeforeHeaders extends $tea.Model {
|
|
1278
|
+
commonHeaders?: { [key: string]: string };
|
|
1279
|
+
accountContext?: InsertRowsBeforeHeadersAccountContext;
|
|
1280
|
+
static names(): { [key: string]: string } {
|
|
1281
|
+
return {
|
|
1282
|
+
commonHeaders: 'commonHeaders',
|
|
1283
|
+
accountContext: 'AccountContext',
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
static types(): { [key: string]: any } {
|
|
1288
|
+
return {
|
|
1289
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1290
|
+
accountContext: InsertRowsBeforeHeadersAccountContext,
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
constructor(map?: { [key: string]: any }) {
|
|
1295
|
+
super(map);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
export class InsertRowsBeforeShrinkHeaders extends $tea.Model {
|
|
1300
|
+
commonHeaders?: { [key: string]: string };
|
|
1301
|
+
accountContextShrink?: string;
|
|
1302
|
+
static names(): { [key: string]: string } {
|
|
1303
|
+
return {
|
|
1304
|
+
commonHeaders: 'commonHeaders',
|
|
1305
|
+
accountContextShrink: 'AccountContext',
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
static types(): { [key: string]: any } {
|
|
1310
|
+
return {
|
|
1311
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1312
|
+
accountContextShrink: 'string',
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
constructor(map?: { [key: string]: any }) {
|
|
1317
|
+
super(map);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export class InsertRowsBeforeRequest extends $tea.Model {
|
|
1322
|
+
row?: number;
|
|
1323
|
+
rowCount?: number;
|
|
1324
|
+
sheetId?: string;
|
|
1325
|
+
tenantContext?: InsertRowsBeforeRequestTenantContext;
|
|
1326
|
+
workbookId?: string;
|
|
1327
|
+
static names(): { [key: string]: string } {
|
|
1328
|
+
return {
|
|
1329
|
+
row: 'Row',
|
|
1330
|
+
rowCount: 'RowCount',
|
|
1331
|
+
sheetId: 'SheetId',
|
|
1332
|
+
tenantContext: 'TenantContext',
|
|
1333
|
+
workbookId: 'WorkbookId',
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
static types(): { [key: string]: any } {
|
|
1338
|
+
return {
|
|
1339
|
+
row: 'number',
|
|
1340
|
+
rowCount: 'number',
|
|
1341
|
+
sheetId: 'string',
|
|
1342
|
+
tenantContext: InsertRowsBeforeRequestTenantContext,
|
|
1343
|
+
workbookId: 'string',
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
constructor(map?: { [key: string]: any }) {
|
|
1348
|
+
super(map);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
export class InsertRowsBeforeShrinkRequest extends $tea.Model {
|
|
1353
|
+
row?: number;
|
|
1354
|
+
rowCount?: number;
|
|
1355
|
+
sheetId?: string;
|
|
1356
|
+
tenantContextShrink?: string;
|
|
1357
|
+
workbookId?: string;
|
|
1358
|
+
static names(): { [key: string]: string } {
|
|
1359
|
+
return {
|
|
1360
|
+
row: 'Row',
|
|
1361
|
+
rowCount: 'RowCount',
|
|
1362
|
+
sheetId: 'SheetId',
|
|
1363
|
+
tenantContextShrink: 'TenantContext',
|
|
1364
|
+
workbookId: 'WorkbookId',
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
static types(): { [key: string]: any } {
|
|
1369
|
+
return {
|
|
1370
|
+
row: 'number',
|
|
1371
|
+
rowCount: 'number',
|
|
1372
|
+
sheetId: 'string',
|
|
1373
|
+
tenantContextShrink: 'string',
|
|
1374
|
+
workbookId: 'string',
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
constructor(map?: { [key: string]: any }) {
|
|
1379
|
+
super(map);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
export class InsertRowsBeforeResponseBody extends $tea.Model {
|
|
1384
|
+
id?: string;
|
|
1385
|
+
requestId?: string;
|
|
1386
|
+
static names(): { [key: string]: string } {
|
|
1387
|
+
return {
|
|
1388
|
+
id: 'id',
|
|
1389
|
+
requestId: 'requestId',
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
static types(): { [key: string]: any } {
|
|
1394
|
+
return {
|
|
1395
|
+
id: 'string',
|
|
1396
|
+
requestId: 'string',
|
|
1397
|
+
};
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
constructor(map?: { [key: string]: any }) {
|
|
1401
|
+
super(map);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
export class InsertRowsBeforeResponse extends $tea.Model {
|
|
1406
|
+
headers: { [key: string]: string };
|
|
1407
|
+
statusCode: number;
|
|
1408
|
+
body: InsertRowsBeforeResponseBody;
|
|
1409
|
+
static names(): { [key: string]: string } {
|
|
1410
|
+
return {
|
|
1411
|
+
headers: 'headers',
|
|
1412
|
+
statusCode: 'statusCode',
|
|
1413
|
+
body: 'body',
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
static types(): { [key: string]: any } {
|
|
1418
|
+
return {
|
|
1419
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1420
|
+
statusCode: 'number',
|
|
1421
|
+
body: InsertRowsBeforeResponseBody,
|
|
1422
|
+
};
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
constructor(map?: { [key: string]: any }) {
|
|
1426
|
+
super(map);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export class UpdateWorkspaceDocMembersHeaders extends $tea.Model {
|
|
1431
|
+
commonHeaders?: { [key: string]: string };
|
|
1432
|
+
accountContext?: UpdateWorkspaceDocMembersHeadersAccountContext;
|
|
1433
|
+
static names(): { [key: string]: string } {
|
|
1434
|
+
return {
|
|
1435
|
+
commonHeaders: 'commonHeaders',
|
|
1436
|
+
accountContext: 'AccountContext',
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
static types(): { [key: string]: any } {
|
|
1441
|
+
return {
|
|
1442
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1443
|
+
accountContext: UpdateWorkspaceDocMembersHeadersAccountContext,
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
constructor(map?: { [key: string]: any }) {
|
|
1448
|
+
super(map);
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
export class UpdateWorkspaceDocMembersShrinkHeaders extends $tea.Model {
|
|
1453
|
+
commonHeaders?: { [key: string]: string };
|
|
1454
|
+
accountContextShrink?: string;
|
|
1455
|
+
static names(): { [key: string]: string } {
|
|
1456
|
+
return {
|
|
1457
|
+
commonHeaders: 'commonHeaders',
|
|
1458
|
+
accountContextShrink: 'AccountContext',
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
static types(): { [key: string]: any } {
|
|
1463
|
+
return {
|
|
1464
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1465
|
+
accountContextShrink: 'string',
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
constructor(map?: { [key: string]: any }) {
|
|
1470
|
+
super(map);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
export class UpdateWorkspaceDocMembersRequest extends $tea.Model {
|
|
1475
|
+
members?: UpdateWorkspaceDocMembersRequestMembers[];
|
|
1476
|
+
nodeId?: string;
|
|
1477
|
+
tenantContext?: UpdateWorkspaceDocMembersRequestTenantContext;
|
|
1478
|
+
workspaceId?: string;
|
|
1479
|
+
static names(): { [key: string]: string } {
|
|
1480
|
+
return {
|
|
1481
|
+
members: 'Members',
|
|
1482
|
+
nodeId: 'NodeId',
|
|
1483
|
+
tenantContext: 'TenantContext',
|
|
1484
|
+
workspaceId: 'WorkspaceId',
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
static types(): { [key: string]: any } {
|
|
1489
|
+
return {
|
|
1490
|
+
members: { 'type': 'array', 'itemType': UpdateWorkspaceDocMembersRequestMembers },
|
|
1491
|
+
nodeId: 'string',
|
|
1492
|
+
tenantContext: UpdateWorkspaceDocMembersRequestTenantContext,
|
|
1493
|
+
workspaceId: 'string',
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
constructor(map?: { [key: string]: any }) {
|
|
1498
|
+
super(map);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
export class UpdateWorkspaceDocMembersShrinkRequest extends $tea.Model {
|
|
1503
|
+
membersShrink?: string;
|
|
1504
|
+
nodeId?: string;
|
|
1505
|
+
tenantContextShrink?: string;
|
|
1506
|
+
workspaceId?: string;
|
|
1507
|
+
static names(): { [key: string]: string } {
|
|
1508
|
+
return {
|
|
1509
|
+
membersShrink: 'Members',
|
|
1510
|
+
nodeId: 'NodeId',
|
|
1511
|
+
tenantContextShrink: 'TenantContext',
|
|
1512
|
+
workspaceId: 'WorkspaceId',
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
static types(): { [key: string]: any } {
|
|
1517
|
+
return {
|
|
1518
|
+
membersShrink: 'string',
|
|
1519
|
+
nodeId: 'string',
|
|
1520
|
+
tenantContextShrink: 'string',
|
|
1521
|
+
workspaceId: 'string',
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
constructor(map?: { [key: string]: any }) {
|
|
1526
|
+
super(map);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
export class UpdateWorkspaceDocMembersResponseBody extends $tea.Model {
|
|
1531
|
+
requestId?: string;
|
|
1532
|
+
static names(): { [key: string]: string } {
|
|
1533
|
+
return {
|
|
1534
|
+
requestId: 'requestId',
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
static types(): { [key: string]: any } {
|
|
1539
|
+
return {
|
|
1540
|
+
requestId: 'string',
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
constructor(map?: { [key: string]: any }) {
|
|
1545
|
+
super(map);
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
export class UpdateWorkspaceDocMembersResponse extends $tea.Model {
|
|
1550
|
+
headers: { [key: string]: string };
|
|
1551
|
+
statusCode: number;
|
|
1552
|
+
body: UpdateWorkspaceDocMembersResponseBody;
|
|
1553
|
+
static names(): { [key: string]: string } {
|
|
1554
|
+
return {
|
|
1555
|
+
headers: 'headers',
|
|
1556
|
+
statusCode: 'statusCode',
|
|
1557
|
+
body: 'body',
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
static types(): { [key: string]: any } {
|
|
1562
|
+
return {
|
|
1563
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1564
|
+
statusCode: 'number',
|
|
1565
|
+
body: UpdateWorkspaceDocMembersResponseBody,
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
constructor(map?: { [key: string]: any }) {
|
|
1570
|
+
super(map);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
export class UpdateWorkspaceMembersHeaders extends $tea.Model {
|
|
1575
|
+
commonHeaders?: { [key: string]: string };
|
|
1576
|
+
accountContext?: UpdateWorkspaceMembersHeadersAccountContext;
|
|
1577
|
+
static names(): { [key: string]: string } {
|
|
1578
|
+
return {
|
|
1579
|
+
commonHeaders: 'commonHeaders',
|
|
1580
|
+
accountContext: 'AccountContext',
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
static types(): { [key: string]: any } {
|
|
1585
|
+
return {
|
|
1586
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1587
|
+
accountContext: UpdateWorkspaceMembersHeadersAccountContext,
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
constructor(map?: { [key: string]: any }) {
|
|
1592
|
+
super(map);
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
export class UpdateWorkspaceMembersShrinkHeaders extends $tea.Model {
|
|
1597
|
+
commonHeaders?: { [key: string]: string };
|
|
1598
|
+
accountContextShrink?: string;
|
|
1599
|
+
static names(): { [key: string]: string } {
|
|
1600
|
+
return {
|
|
1601
|
+
commonHeaders: 'commonHeaders',
|
|
1602
|
+
accountContextShrink: 'AccountContext',
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
static types(): { [key: string]: any } {
|
|
1607
|
+
return {
|
|
1608
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1609
|
+
accountContextShrink: 'string',
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
constructor(map?: { [key: string]: any }) {
|
|
1614
|
+
super(map);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
export class UpdateWorkspaceMembersRequest extends $tea.Model {
|
|
1619
|
+
members?: UpdateWorkspaceMembersRequestMembers[];
|
|
1620
|
+
tenantContext?: UpdateWorkspaceMembersRequestTenantContext;
|
|
1621
|
+
workspaceId?: string;
|
|
1622
|
+
static names(): { [key: string]: string } {
|
|
1623
|
+
return {
|
|
1624
|
+
members: 'Members',
|
|
1625
|
+
tenantContext: 'TenantContext',
|
|
1626
|
+
workspaceId: 'WorkspaceId',
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
static types(): { [key: string]: any } {
|
|
1631
|
+
return {
|
|
1632
|
+
members: { 'type': 'array', 'itemType': UpdateWorkspaceMembersRequestMembers },
|
|
1633
|
+
tenantContext: UpdateWorkspaceMembersRequestTenantContext,
|
|
1634
|
+
workspaceId: 'string',
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
constructor(map?: { [key: string]: any }) {
|
|
1639
|
+
super(map);
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
export class UpdateWorkspaceMembersShrinkRequest extends $tea.Model {
|
|
1644
|
+
membersShrink?: string;
|
|
1645
|
+
tenantContextShrink?: string;
|
|
1646
|
+
workspaceId?: string;
|
|
1647
|
+
static names(): { [key: string]: string } {
|
|
1648
|
+
return {
|
|
1649
|
+
membersShrink: 'Members',
|
|
1650
|
+
tenantContextShrink: 'TenantContext',
|
|
1651
|
+
workspaceId: 'WorkspaceId',
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
static types(): { [key: string]: any } {
|
|
1656
|
+
return {
|
|
1657
|
+
membersShrink: 'string',
|
|
1658
|
+
tenantContextShrink: 'string',
|
|
1659
|
+
workspaceId: 'string',
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
constructor(map?: { [key: string]: any }) {
|
|
1664
|
+
super(map);
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
export class UpdateWorkspaceMembersResponseBody extends $tea.Model {
|
|
1669
|
+
requestId?: string;
|
|
1670
|
+
static names(): { [key: string]: string } {
|
|
1671
|
+
return {
|
|
1672
|
+
requestId: 'requestId',
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
static types(): { [key: string]: any } {
|
|
1677
|
+
return {
|
|
1678
|
+
requestId: 'string',
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
constructor(map?: { [key: string]: any }) {
|
|
1683
|
+
super(map);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
export class UpdateWorkspaceMembersResponse extends $tea.Model {
|
|
1688
|
+
headers: { [key: string]: string };
|
|
1689
|
+
statusCode: number;
|
|
1690
|
+
body: UpdateWorkspaceMembersResponseBody;
|
|
1691
|
+
static names(): { [key: string]: string } {
|
|
1692
|
+
return {
|
|
1693
|
+
headers: 'headers',
|
|
1694
|
+
statusCode: 'statusCode',
|
|
1695
|
+
body: 'body',
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
static types(): { [key: string]: any } {
|
|
1700
|
+
return {
|
|
1701
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1702
|
+
statusCode: 'number',
|
|
1703
|
+
body: UpdateWorkspaceMembersResponseBody,
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
constructor(map?: { [key: string]: any }) {
|
|
1708
|
+
super(map);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
export class AddWorkspaceDocMembersHeadersAccountContext extends $tea.Model {
|
|
1713
|
+
accountId?: string;
|
|
1714
|
+
static names(): { [key: string]: string } {
|
|
1715
|
+
return {
|
|
1716
|
+
accountId: 'accountId',
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
static types(): { [key: string]: any } {
|
|
1721
|
+
return {
|
|
1722
|
+
accountId: 'string',
|
|
1723
|
+
};
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
constructor(map?: { [key: string]: any }) {
|
|
1727
|
+
super(map);
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
export class AddWorkspaceDocMembersRequestMembers extends $tea.Model {
|
|
1732
|
+
memberId?: string;
|
|
1733
|
+
memberType?: string;
|
|
1734
|
+
roleType?: string;
|
|
1735
|
+
static names(): { [key: string]: string } {
|
|
1736
|
+
return {
|
|
1737
|
+
memberId: 'MemberId',
|
|
1738
|
+
memberType: 'MemberType',
|
|
1739
|
+
roleType: 'RoleType',
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
static types(): { [key: string]: any } {
|
|
1744
|
+
return {
|
|
1745
|
+
memberId: 'string',
|
|
1746
|
+
memberType: 'string',
|
|
1747
|
+
roleType: 'string',
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
constructor(map?: { [key: string]: any }) {
|
|
1752
|
+
super(map);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
export class AddWorkspaceDocMembersRequestTenantContext extends $tea.Model {
|
|
1757
|
+
tenantId?: string;
|
|
1758
|
+
static names(): { [key: string]: string } {
|
|
1759
|
+
return {
|
|
1760
|
+
tenantId: 'tenantId',
|
|
1761
|
+
};
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
static types(): { [key: string]: any } {
|
|
1765
|
+
return {
|
|
1766
|
+
tenantId: 'string',
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
constructor(map?: { [key: string]: any }) {
|
|
1771
|
+
super(map);
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
export class AddWorkspaceMembersHeadersAccountContext extends $tea.Model {
|
|
1776
|
+
accountId?: string;
|
|
1777
|
+
static names(): { [key: string]: string } {
|
|
1778
|
+
return {
|
|
1779
|
+
accountId: 'accountId',
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
static types(): { [key: string]: any } {
|
|
1784
|
+
return {
|
|
1785
|
+
accountId: 'string',
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
constructor(map?: { [key: string]: any }) {
|
|
1790
|
+
super(map);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
export class AddWorkspaceMembersRequestMembers extends $tea.Model {
|
|
1795
|
+
memberId?: string;
|
|
1796
|
+
memberType?: string;
|
|
1797
|
+
roleType?: string;
|
|
1798
|
+
static names(): { [key: string]: string } {
|
|
1799
|
+
return {
|
|
1800
|
+
memberId: 'MemberId',
|
|
1801
|
+
memberType: 'MemberType',
|
|
1802
|
+
roleType: 'RoleType',
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
static types(): { [key: string]: any } {
|
|
1807
|
+
return {
|
|
1808
|
+
memberId: 'string',
|
|
1809
|
+
memberType: 'string',
|
|
1810
|
+
roleType: 'string',
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
constructor(map?: { [key: string]: any }) {
|
|
1815
|
+
super(map);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
export class AddWorkspaceMembersRequestTenantContext extends $tea.Model {
|
|
1820
|
+
tenantId?: string;
|
|
1821
|
+
static names(): { [key: string]: string } {
|
|
1822
|
+
return {
|
|
1823
|
+
tenantId: 'tenantId',
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
static types(): { [key: string]: any } {
|
|
1828
|
+
return {
|
|
1829
|
+
tenantId: 'string',
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
constructor(map?: { [key: string]: any }) {
|
|
1834
|
+
super(map);
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
export class CreateSheetHeadersAccountContext extends $tea.Model {
|
|
1839
|
+
accountId?: string;
|
|
1840
|
+
static names(): { [key: string]: string } {
|
|
1841
|
+
return {
|
|
1842
|
+
accountId: 'accountId',
|
|
1843
|
+
};
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
static types(): { [key: string]: any } {
|
|
1847
|
+
return {
|
|
1848
|
+
accountId: 'string',
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
constructor(map?: { [key: string]: any }) {
|
|
1853
|
+
super(map);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
export class CreateSheetRequestTenantContext extends $tea.Model {
|
|
1858
|
+
tenantId?: string;
|
|
1859
|
+
static names(): { [key: string]: string } {
|
|
1860
|
+
return {
|
|
1861
|
+
tenantId: 'tenantId',
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
static types(): { [key: string]: any } {
|
|
1866
|
+
return {
|
|
1867
|
+
tenantId: 'string',
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
constructor(map?: { [key: string]: any }) {
|
|
1872
|
+
super(map);
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
export class CreateWorkspaceHeadersAccountContext extends $tea.Model {
|
|
1877
|
+
accountId?: string;
|
|
1878
|
+
static names(): { [key: string]: string } {
|
|
1879
|
+
return {
|
|
1880
|
+
accountId: 'accountId',
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
static types(): { [key: string]: any } {
|
|
1885
|
+
return {
|
|
1886
|
+
accountId: 'string',
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
constructor(map?: { [key: string]: any }) {
|
|
1891
|
+
super(map);
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
export class CreateWorkspaceRequestTenantContext extends $tea.Model {
|
|
1896
|
+
tenantId?: string;
|
|
1897
|
+
static names(): { [key: string]: string } {
|
|
1898
|
+
return {
|
|
1899
|
+
tenantId: 'tenantId',
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
static types(): { [key: string]: any } {
|
|
1904
|
+
return {
|
|
1905
|
+
tenantId: 'string',
|
|
1906
|
+
};
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
constructor(map?: { [key: string]: any }) {
|
|
1910
|
+
super(map);
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
export class CreateWorkspaceDocHeadersAccountContext extends $tea.Model {
|
|
1915
|
+
accountId?: string;
|
|
1916
|
+
static names(): { [key: string]: string } {
|
|
1917
|
+
return {
|
|
1918
|
+
accountId: 'accountId',
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
static types(): { [key: string]: any } {
|
|
1923
|
+
return {
|
|
1924
|
+
accountId: 'string',
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
constructor(map?: { [key: string]: any }) {
|
|
1929
|
+
super(map);
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
export class CreateWorkspaceDocRequestTenantContext extends $tea.Model {
|
|
1934
|
+
tenantId?: string;
|
|
1935
|
+
static names(): { [key: string]: string } {
|
|
1936
|
+
return {
|
|
1937
|
+
tenantId: 'tenantId',
|
|
1938
|
+
};
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
static types(): { [key: string]: any } {
|
|
1942
|
+
return {
|
|
1943
|
+
tenantId: 'string',
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
constructor(map?: { [key: string]: any }) {
|
|
1948
|
+
super(map);
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
export class DeleteWorkspaceDocMembersHeadersAccountContext extends $tea.Model {
|
|
1953
|
+
accountId?: string;
|
|
1954
|
+
static names(): { [key: string]: string } {
|
|
1955
|
+
return {
|
|
1956
|
+
accountId: 'accountId',
|
|
1957
|
+
};
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
static types(): { [key: string]: any } {
|
|
1961
|
+
return {
|
|
1962
|
+
accountId: 'string',
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
constructor(map?: { [key: string]: any }) {
|
|
1967
|
+
super(map);
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
export class DeleteWorkspaceDocMembersRequestMembers extends $tea.Model {
|
|
1972
|
+
memberId?: string;
|
|
1973
|
+
memberType?: string;
|
|
1974
|
+
static names(): { [key: string]: string } {
|
|
1975
|
+
return {
|
|
1976
|
+
memberId: 'MemberId',
|
|
1977
|
+
memberType: 'MemberType',
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
static types(): { [key: string]: any } {
|
|
1982
|
+
return {
|
|
1983
|
+
memberId: 'string',
|
|
1984
|
+
memberType: 'string',
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
constructor(map?: { [key: string]: any }) {
|
|
1989
|
+
super(map);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
export class DeleteWorkspaceDocMembersRequestTenantContext extends $tea.Model {
|
|
1994
|
+
tenantId?: string;
|
|
1995
|
+
static names(): { [key: string]: string } {
|
|
1996
|
+
return {
|
|
1997
|
+
tenantId: 'tenantId',
|
|
1998
|
+
};
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
static types(): { [key: string]: any } {
|
|
2002
|
+
return {
|
|
2003
|
+
tenantId: 'string',
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
constructor(map?: { [key: string]: any }) {
|
|
2008
|
+
super(map);
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
export class DeleteWorkspaceMembersHeadersAccountContext extends $tea.Model {
|
|
2013
|
+
accountId?: string;
|
|
2014
|
+
static names(): { [key: string]: string } {
|
|
2015
|
+
return {
|
|
2016
|
+
accountId: 'accountId',
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
static types(): { [key: string]: any } {
|
|
2021
|
+
return {
|
|
2022
|
+
accountId: 'string',
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
constructor(map?: { [key: string]: any }) {
|
|
2027
|
+
super(map);
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
export class DeleteWorkspaceMembersRequestMembers extends $tea.Model {
|
|
2032
|
+
memberId?: string;
|
|
2033
|
+
memberType?: string;
|
|
2034
|
+
static names(): { [key: string]: string } {
|
|
2035
|
+
return {
|
|
2036
|
+
memberId: 'MemberId',
|
|
2037
|
+
memberType: 'MemberType',
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
static types(): { [key: string]: any } {
|
|
2042
|
+
return {
|
|
2043
|
+
memberId: 'string',
|
|
2044
|
+
memberType: 'string',
|
|
2045
|
+
};
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
constructor(map?: { [key: string]: any }) {
|
|
2049
|
+
super(map);
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
export class DeleteWorkspaceMembersRequestTenantContext extends $tea.Model {
|
|
2054
|
+
tenantId?: string;
|
|
2055
|
+
static names(): { [key: string]: string } {
|
|
2056
|
+
return {
|
|
2057
|
+
tenantId: 'tenantId',
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
static types(): { [key: string]: any } {
|
|
2062
|
+
return {
|
|
2063
|
+
tenantId: 'string',
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
constructor(map?: { [key: string]: any }) {
|
|
2068
|
+
super(map);
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
export class GetUserHeadersAccountContext extends $tea.Model {
|
|
2073
|
+
accountId?: string;
|
|
2074
|
+
static names(): { [key: string]: string } {
|
|
2075
|
+
return {
|
|
2076
|
+
accountId: 'accountId',
|
|
2077
|
+
};
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
static types(): { [key: string]: any } {
|
|
2081
|
+
return {
|
|
2082
|
+
accountId: 'string',
|
|
2083
|
+
};
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
constructor(map?: { [key: string]: any }) {
|
|
2087
|
+
super(map);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
export class GetUserRequestTenantContext extends $tea.Model {
|
|
2092
|
+
tenantId?: string;
|
|
2093
|
+
static names(): { [key: string]: string } {
|
|
2094
|
+
return {
|
|
2095
|
+
tenantId: 'tenantId',
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
static types(): { [key: string]: any } {
|
|
2100
|
+
return {
|
|
2101
|
+
tenantId: 'string',
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
constructor(map?: { [key: string]: any }) {
|
|
2106
|
+
super(map);
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
export class GetUserResponseBodyDeptOrderList extends $tea.Model {
|
|
2111
|
+
deptId?: number;
|
|
2112
|
+
order?: number;
|
|
2113
|
+
static names(): { [key: string]: string } {
|
|
2114
|
+
return {
|
|
2115
|
+
deptId: 'deptId',
|
|
2116
|
+
order: 'order',
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
static types(): { [key: string]: any } {
|
|
2121
|
+
return {
|
|
2122
|
+
deptId: 'number',
|
|
2123
|
+
order: 'number',
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
constructor(map?: { [key: string]: any }) {
|
|
2128
|
+
super(map);
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
export class GetUserResponseBodyLeaderInDept extends $tea.Model {
|
|
2133
|
+
deptId?: number;
|
|
2134
|
+
leader?: boolean;
|
|
2135
|
+
static names(): { [key: string]: string } {
|
|
2136
|
+
return {
|
|
2137
|
+
deptId: 'deptId',
|
|
2138
|
+
leader: 'leader',
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
static types(): { [key: string]: any } {
|
|
2143
|
+
return {
|
|
2144
|
+
deptId: 'number',
|
|
2145
|
+
leader: 'boolean',
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
constructor(map?: { [key: string]: any }) {
|
|
2150
|
+
super(map);
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
export class GetUserResponseBodyRoleList extends $tea.Model {
|
|
2155
|
+
groupName?: string;
|
|
2156
|
+
id?: number;
|
|
2157
|
+
name?: string;
|
|
2158
|
+
static names(): { [key: string]: string } {
|
|
2159
|
+
return {
|
|
2160
|
+
groupName: 'groupName',
|
|
2161
|
+
id: 'id',
|
|
2162
|
+
name: 'name',
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
static types(): { [key: string]: any } {
|
|
2167
|
+
return {
|
|
2168
|
+
groupName: 'string',
|
|
2169
|
+
id: 'number',
|
|
2170
|
+
name: 'string',
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
constructor(map?: { [key: string]: any }) {
|
|
2175
|
+
super(map);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
export class GetUserResponseBodyUnionEmpExtUnionEmpMapList extends $tea.Model {
|
|
2180
|
+
cropId?: string;
|
|
2181
|
+
userid?: string;
|
|
2182
|
+
static names(): { [key: string]: string } {
|
|
2183
|
+
return {
|
|
2184
|
+
cropId: 'cropId',
|
|
2185
|
+
userid: 'userid',
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
static types(): { [key: string]: any } {
|
|
2190
|
+
return {
|
|
2191
|
+
cropId: 'string',
|
|
2192
|
+
userid: 'string',
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
constructor(map?: { [key: string]: any }) {
|
|
2197
|
+
super(map);
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
export class GetUserResponseBodyUnionEmpExt extends $tea.Model {
|
|
2202
|
+
corpId?: string;
|
|
2203
|
+
unionEmpMapList?: GetUserResponseBodyUnionEmpExtUnionEmpMapList[];
|
|
2204
|
+
userid?: string;
|
|
2205
|
+
static names(): { [key: string]: string } {
|
|
2206
|
+
return {
|
|
2207
|
+
corpId: 'corpId',
|
|
2208
|
+
unionEmpMapList: 'unionEmpMapList',
|
|
2209
|
+
userid: 'userid',
|
|
2210
|
+
};
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
static types(): { [key: string]: any } {
|
|
2214
|
+
return {
|
|
2215
|
+
corpId: 'string',
|
|
2216
|
+
unionEmpMapList: { 'type': 'array', 'itemType': GetUserResponseBodyUnionEmpExtUnionEmpMapList },
|
|
2217
|
+
userid: 'string',
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
constructor(map?: { [key: string]: any }) {
|
|
2222
|
+
super(map);
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
export class InsertRowsBeforeHeadersAccountContext extends $tea.Model {
|
|
2227
|
+
accountId?: string;
|
|
2228
|
+
static names(): { [key: string]: string } {
|
|
2229
|
+
return {
|
|
2230
|
+
accountId: 'accountId',
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
static types(): { [key: string]: any } {
|
|
2235
|
+
return {
|
|
2236
|
+
accountId: 'string',
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
constructor(map?: { [key: string]: any }) {
|
|
2241
|
+
super(map);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
export class InsertRowsBeforeRequestTenantContext extends $tea.Model {
|
|
2246
|
+
tenantId?: string;
|
|
2247
|
+
static names(): { [key: string]: string } {
|
|
2248
|
+
return {
|
|
2249
|
+
tenantId: 'tenantId',
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
static types(): { [key: string]: any } {
|
|
2254
|
+
return {
|
|
2255
|
+
tenantId: 'string',
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
constructor(map?: { [key: string]: any }) {
|
|
2260
|
+
super(map);
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
export class UpdateWorkspaceDocMembersHeadersAccountContext extends $tea.Model {
|
|
2265
|
+
accountId?: string;
|
|
2266
|
+
static names(): { [key: string]: string } {
|
|
2267
|
+
return {
|
|
2268
|
+
accountId: 'accountId',
|
|
2269
|
+
};
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
static types(): { [key: string]: any } {
|
|
2273
|
+
return {
|
|
2274
|
+
accountId: 'string',
|
|
2275
|
+
};
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
constructor(map?: { [key: string]: any }) {
|
|
2279
|
+
super(map);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
export class UpdateWorkspaceDocMembersRequestMembers extends $tea.Model {
|
|
2284
|
+
memberId?: string;
|
|
2285
|
+
memberType?: string;
|
|
2286
|
+
roleType?: string;
|
|
2287
|
+
static names(): { [key: string]: string } {
|
|
2288
|
+
return {
|
|
2289
|
+
memberId: 'MemberId',
|
|
2290
|
+
memberType: 'MemberType',
|
|
2291
|
+
roleType: 'RoleType',
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
static types(): { [key: string]: any } {
|
|
2296
|
+
return {
|
|
2297
|
+
memberId: 'string',
|
|
2298
|
+
memberType: 'string',
|
|
2299
|
+
roleType: 'string',
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
constructor(map?: { [key: string]: any }) {
|
|
2304
|
+
super(map);
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
export class UpdateWorkspaceDocMembersRequestTenantContext extends $tea.Model {
|
|
2309
|
+
tenantId?: string;
|
|
2310
|
+
static names(): { [key: string]: string } {
|
|
2311
|
+
return {
|
|
2312
|
+
tenantId: 'tenantId',
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
static types(): { [key: string]: any } {
|
|
2317
|
+
return {
|
|
2318
|
+
tenantId: 'string',
|
|
2319
|
+
};
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
constructor(map?: { [key: string]: any }) {
|
|
2323
|
+
super(map);
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
export class UpdateWorkspaceMembersHeadersAccountContext extends $tea.Model {
|
|
2328
|
+
accountId?: string;
|
|
2329
|
+
static names(): { [key: string]: string } {
|
|
2330
|
+
return {
|
|
2331
|
+
accountId: 'accountId',
|
|
2332
|
+
};
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
static types(): { [key: string]: any } {
|
|
2336
|
+
return {
|
|
2337
|
+
accountId: 'string',
|
|
2338
|
+
};
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
constructor(map?: { [key: string]: any }) {
|
|
2342
|
+
super(map);
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
export class UpdateWorkspaceMembersRequestMembers extends $tea.Model {
|
|
2347
|
+
memberId?: string;
|
|
2348
|
+
memberType?: string;
|
|
2349
|
+
roleType?: string;
|
|
2350
|
+
static names(): { [key: string]: string } {
|
|
2351
|
+
return {
|
|
2352
|
+
memberId: 'MemberId',
|
|
2353
|
+
memberType: 'MemberType',
|
|
2354
|
+
roleType: 'RoleType',
|
|
2355
|
+
};
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
static types(): { [key: string]: any } {
|
|
2359
|
+
return {
|
|
2360
|
+
memberId: 'string',
|
|
2361
|
+
memberType: 'string',
|
|
2362
|
+
roleType: 'string',
|
|
2363
|
+
};
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
constructor(map?: { [key: string]: any }) {
|
|
2367
|
+
super(map);
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
export class UpdateWorkspaceMembersRequestTenantContext extends $tea.Model {
|
|
2372
|
+
tenantId?: string;
|
|
2373
|
+
static names(): { [key: string]: string } {
|
|
2374
|
+
return {
|
|
2375
|
+
tenantId: 'tenantId',
|
|
2376
|
+
};
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
static types(): { [key: string]: any } {
|
|
2380
|
+
return {
|
|
2381
|
+
tenantId: 'string',
|
|
2382
|
+
};
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
constructor(map?: { [key: string]: any }) {
|
|
2386
|
+
super(map);
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
|
|
10
2390
|
|
|
11
2391
|
export default class Client extends OpenApi {
|
|
12
2392
|
|
|
@@ -30,4 +2410,720 @@ export default class Client extends OpenApi {
|
|
|
30
2410
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
31
2411
|
}
|
|
32
2412
|
|
|
2413
|
+
async addWorkspaceDocMembersWithOptions(tmpReq: AddWorkspaceDocMembersRequest, tmpHeader: AddWorkspaceDocMembersHeaders, runtime: $Util.RuntimeOptions): Promise<AddWorkspaceDocMembersResponse> {
|
|
2414
|
+
Util.validateModel(tmpReq);
|
|
2415
|
+
let request = new AddWorkspaceDocMembersShrinkRequest({ });
|
|
2416
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2417
|
+
let headers = new AddWorkspaceDocMembersShrinkHeaders({ });
|
|
2418
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2419
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2420
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
if (!Util.isUnset(tmpReq.members)) {
|
|
2424
|
+
request.membersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json");
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2428
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
let body : {[key: string ]: any} = { };
|
|
2432
|
+
if (!Util.isUnset(request.membersShrink)) {
|
|
2433
|
+
body["Members"] = request.membersShrink;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
if (!Util.isUnset(request.nodeId)) {
|
|
2437
|
+
body["NodeId"] = request.nodeId;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2441
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
2445
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2449
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2450
|
+
realHeaders = headers.commonHeaders;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2454
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2458
|
+
headers: realHeaders,
|
|
2459
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2460
|
+
});
|
|
2461
|
+
let params = new $OpenApi.Params({
|
|
2462
|
+
action: "AddWorkspaceDocMembers",
|
|
2463
|
+
version: "2023-04-26",
|
|
2464
|
+
protocol: "HTTPS",
|
|
2465
|
+
pathname: `/dingtalk/v1/documents/addWorkspaceDocMembers`,
|
|
2466
|
+
method: "POST",
|
|
2467
|
+
authType: "AK",
|
|
2468
|
+
style: "ROA",
|
|
2469
|
+
reqBodyType: "formData",
|
|
2470
|
+
bodyType: "json",
|
|
2471
|
+
});
|
|
2472
|
+
return $tea.cast<AddWorkspaceDocMembersResponse>(await this.callApi(params, req, runtime), new AddWorkspaceDocMembersResponse({}));
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
async addWorkspaceDocMembers(request: AddWorkspaceDocMembersRequest): Promise<AddWorkspaceDocMembersResponse> {
|
|
2476
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2477
|
+
let headers = new AddWorkspaceDocMembersHeaders({ });
|
|
2478
|
+
return await this.addWorkspaceDocMembersWithOptions(request, headers, runtime);
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
async addWorkspaceMembersWithOptions(tmpReq: AddWorkspaceMembersRequest, tmpHeader: AddWorkspaceMembersHeaders, runtime: $Util.RuntimeOptions): Promise<AddWorkspaceMembersResponse> {
|
|
2482
|
+
Util.validateModel(tmpReq);
|
|
2483
|
+
let request = new AddWorkspaceMembersShrinkRequest({ });
|
|
2484
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2485
|
+
let headers = new AddWorkspaceMembersShrinkHeaders({ });
|
|
2486
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2487
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2488
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
if (!Util.isUnset(tmpReq.members)) {
|
|
2492
|
+
request.membersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json");
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2496
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
let body : {[key: string ]: any} = { };
|
|
2500
|
+
if (!Util.isUnset(request.membersShrink)) {
|
|
2501
|
+
body["Members"] = request.membersShrink;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2505
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
2509
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2513
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2514
|
+
realHeaders = headers.commonHeaders;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2518
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2522
|
+
headers: realHeaders,
|
|
2523
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2524
|
+
});
|
|
2525
|
+
let params = new $OpenApi.Params({
|
|
2526
|
+
action: "AddWorkspaceMembers",
|
|
2527
|
+
version: "2023-04-26",
|
|
2528
|
+
protocol: "HTTPS",
|
|
2529
|
+
pathname: `/dingtalk/v1/documents/addWorkspaceMembers`,
|
|
2530
|
+
method: "POST",
|
|
2531
|
+
authType: "AK",
|
|
2532
|
+
style: "ROA",
|
|
2533
|
+
reqBodyType: "formData",
|
|
2534
|
+
bodyType: "json",
|
|
2535
|
+
});
|
|
2536
|
+
return $tea.cast<AddWorkspaceMembersResponse>(await this.callApi(params, req, runtime), new AddWorkspaceMembersResponse({}));
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
async addWorkspaceMembers(request: AddWorkspaceMembersRequest): Promise<AddWorkspaceMembersResponse> {
|
|
2540
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2541
|
+
let headers = new AddWorkspaceMembersHeaders({ });
|
|
2542
|
+
return await this.addWorkspaceMembersWithOptions(request, headers, runtime);
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
async createSheetWithOptions(tmpReq: CreateSheetRequest, tmpHeader: CreateSheetHeaders, runtime: $Util.RuntimeOptions): Promise<CreateSheetResponse> {
|
|
2546
|
+
Util.validateModel(tmpReq);
|
|
2547
|
+
let request = new CreateSheetShrinkRequest({ });
|
|
2548
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2549
|
+
let headers = new CreateSheetShrinkHeaders({ });
|
|
2550
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2551
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2552
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2556
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
let body : {[key: string ]: any} = { };
|
|
2560
|
+
if (!Util.isUnset(request.name)) {
|
|
2561
|
+
body["Name"] = request.name;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2565
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
if (!Util.isUnset(request.workbookId)) {
|
|
2569
|
+
body["WorkbookId"] = request.workbookId;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2573
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2574
|
+
realHeaders = headers.commonHeaders;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2578
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2582
|
+
headers: realHeaders,
|
|
2583
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2584
|
+
});
|
|
2585
|
+
let params = new $OpenApi.Params({
|
|
2586
|
+
action: "CreateSheet",
|
|
2587
|
+
version: "2023-04-26",
|
|
2588
|
+
protocol: "HTTPS",
|
|
2589
|
+
pathname: `/dingtalk/v1/documents/createSheet`,
|
|
2590
|
+
method: "POST",
|
|
2591
|
+
authType: "AK",
|
|
2592
|
+
style: "ROA",
|
|
2593
|
+
reqBodyType: "formData",
|
|
2594
|
+
bodyType: "json",
|
|
2595
|
+
});
|
|
2596
|
+
return $tea.cast<CreateSheetResponse>(await this.callApi(params, req, runtime), new CreateSheetResponse({}));
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
async createSheet(request: CreateSheetRequest): Promise<CreateSheetResponse> {
|
|
2600
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2601
|
+
let headers = new CreateSheetHeaders({ });
|
|
2602
|
+
return await this.createSheetWithOptions(request, headers, runtime);
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
async createWorkspaceWithOptions(tmpReq: CreateWorkspaceRequest, tmpHeader: CreateWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise<CreateWorkspaceResponse> {
|
|
2606
|
+
Util.validateModel(tmpReq);
|
|
2607
|
+
let request = new CreateWorkspaceShrinkRequest({ });
|
|
2608
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2609
|
+
let headers = new CreateWorkspaceShrinkHeaders({ });
|
|
2610
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2611
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2612
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2616
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
let body : {[key: string ]: any} = { };
|
|
2620
|
+
if (!Util.isUnset(request.description)) {
|
|
2621
|
+
body["Description"] = request.description;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
if (!Util.isUnset(request.name)) {
|
|
2625
|
+
body["Name"] = request.name;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2629
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2633
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2634
|
+
realHeaders = headers.commonHeaders;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2638
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2642
|
+
headers: realHeaders,
|
|
2643
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2644
|
+
});
|
|
2645
|
+
let params = new $OpenApi.Params({
|
|
2646
|
+
action: "CreateWorkspace",
|
|
2647
|
+
version: "2023-04-26",
|
|
2648
|
+
protocol: "HTTPS",
|
|
2649
|
+
pathname: `/dingtalk/v1/documents/createWorkspace`,
|
|
2650
|
+
method: "POST",
|
|
2651
|
+
authType: "AK",
|
|
2652
|
+
style: "ROA",
|
|
2653
|
+
reqBodyType: "formData",
|
|
2654
|
+
bodyType: "json",
|
|
2655
|
+
});
|
|
2656
|
+
return $tea.cast<CreateWorkspaceResponse>(await this.callApi(params, req, runtime), new CreateWorkspaceResponse({}));
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
async createWorkspace(request: CreateWorkspaceRequest): Promise<CreateWorkspaceResponse> {
|
|
2660
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2661
|
+
let headers = new CreateWorkspaceHeaders({ });
|
|
2662
|
+
return await this.createWorkspaceWithOptions(request, headers, runtime);
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
async createWorkspaceDocWithOptions(tmpReq: CreateWorkspaceDocRequest, tmpHeader: CreateWorkspaceDocHeaders, runtime: $Util.RuntimeOptions): Promise<CreateWorkspaceDocResponse> {
|
|
2666
|
+
Util.validateModel(tmpReq);
|
|
2667
|
+
let request = new CreateWorkspaceDocShrinkRequest({ });
|
|
2668
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2669
|
+
let headers = new CreateWorkspaceDocShrinkHeaders({ });
|
|
2670
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2671
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2672
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2676
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
let body : {[key: string ]: any} = { };
|
|
2680
|
+
if (!Util.isUnset(request.docType)) {
|
|
2681
|
+
body["DocType"] = request.docType;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
if (!Util.isUnset(request.name)) {
|
|
2685
|
+
body["Name"] = request.name;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
if (!Util.isUnset(request.parentNodeId)) {
|
|
2689
|
+
body["ParentNodeId"] = request.parentNodeId;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
if (!Util.isUnset(request.templateId)) {
|
|
2693
|
+
body["TemplateId"] = request.templateId;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
if (!Util.isUnset(request.templateType)) {
|
|
2697
|
+
body["TemplateType"] = request.templateType;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2701
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
2705
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2709
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2710
|
+
realHeaders = headers.commonHeaders;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2714
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2718
|
+
headers: realHeaders,
|
|
2719
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2720
|
+
});
|
|
2721
|
+
let params = new $OpenApi.Params({
|
|
2722
|
+
action: "CreateWorkspaceDoc",
|
|
2723
|
+
version: "2023-04-26",
|
|
2724
|
+
protocol: "HTTPS",
|
|
2725
|
+
pathname: `/dingtalk/v1/documents/createWorkspaceDoc`,
|
|
2726
|
+
method: "POST",
|
|
2727
|
+
authType: "AK",
|
|
2728
|
+
style: "ROA",
|
|
2729
|
+
reqBodyType: "formData",
|
|
2730
|
+
bodyType: "json",
|
|
2731
|
+
});
|
|
2732
|
+
return $tea.cast<CreateWorkspaceDocResponse>(await this.callApi(params, req, runtime), new CreateWorkspaceDocResponse({}));
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
async createWorkspaceDoc(request: CreateWorkspaceDocRequest): Promise<CreateWorkspaceDocResponse> {
|
|
2736
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2737
|
+
let headers = new CreateWorkspaceDocHeaders({ });
|
|
2738
|
+
return await this.createWorkspaceDocWithOptions(request, headers, runtime);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
async deleteWorkspaceDocMembersWithOptions(tmpReq: DeleteWorkspaceDocMembersRequest, tmpHeader: DeleteWorkspaceDocMembersHeaders, runtime: $Util.RuntimeOptions): Promise<DeleteWorkspaceDocMembersResponse> {
|
|
2742
|
+
Util.validateModel(tmpReq);
|
|
2743
|
+
let request = new DeleteWorkspaceDocMembersShrinkRequest({ });
|
|
2744
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2745
|
+
let headers = new DeleteWorkspaceDocMembersShrinkHeaders({ });
|
|
2746
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2747
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2748
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
if (!Util.isUnset(tmpReq.members)) {
|
|
2752
|
+
request.membersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json");
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2756
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
let body : {[key: string ]: any} = { };
|
|
2760
|
+
if (!Util.isUnset(request.membersShrink)) {
|
|
2761
|
+
body["Members"] = request.membersShrink;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
if (!Util.isUnset(request.nodeId)) {
|
|
2765
|
+
body["NodeId"] = request.nodeId;
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2769
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
2773
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2777
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2778
|
+
realHeaders = headers.commonHeaders;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2782
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2786
|
+
headers: realHeaders,
|
|
2787
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2788
|
+
});
|
|
2789
|
+
let params = new $OpenApi.Params({
|
|
2790
|
+
action: "DeleteWorkspaceDocMembers",
|
|
2791
|
+
version: "2023-04-26",
|
|
2792
|
+
protocol: "HTTPS",
|
|
2793
|
+
pathname: `/dingtalk/v1/documents/deleteWorkspaceDocMembers`,
|
|
2794
|
+
method: "POST",
|
|
2795
|
+
authType: "AK",
|
|
2796
|
+
style: "ROA",
|
|
2797
|
+
reqBodyType: "formData",
|
|
2798
|
+
bodyType: "json",
|
|
2799
|
+
});
|
|
2800
|
+
return $tea.cast<DeleteWorkspaceDocMembersResponse>(await this.callApi(params, req, runtime), new DeleteWorkspaceDocMembersResponse({}));
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
async deleteWorkspaceDocMembers(request: DeleteWorkspaceDocMembersRequest): Promise<DeleteWorkspaceDocMembersResponse> {
|
|
2804
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2805
|
+
let headers = new DeleteWorkspaceDocMembersHeaders({ });
|
|
2806
|
+
return await this.deleteWorkspaceDocMembersWithOptions(request, headers, runtime);
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
async deleteWorkspaceMembersWithOptions(tmpReq: DeleteWorkspaceMembersRequest, tmpHeader: DeleteWorkspaceMembersHeaders, runtime: $Util.RuntimeOptions): Promise<DeleteWorkspaceMembersResponse> {
|
|
2810
|
+
Util.validateModel(tmpReq);
|
|
2811
|
+
let request = new DeleteWorkspaceMembersShrinkRequest({ });
|
|
2812
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2813
|
+
let headers = new DeleteWorkspaceMembersShrinkHeaders({ });
|
|
2814
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2815
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2816
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
if (!Util.isUnset(tmpReq.members)) {
|
|
2820
|
+
request.membersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json");
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2824
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
let body : {[key: string ]: any} = { };
|
|
2828
|
+
if (!Util.isUnset(request.membersShrink)) {
|
|
2829
|
+
body["Members"] = request.membersShrink;
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2833
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
2837
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2841
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2842
|
+
realHeaders = headers.commonHeaders;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2846
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2850
|
+
headers: realHeaders,
|
|
2851
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2852
|
+
});
|
|
2853
|
+
let params = new $OpenApi.Params({
|
|
2854
|
+
action: "DeleteWorkspaceMembers",
|
|
2855
|
+
version: "2023-04-26",
|
|
2856
|
+
protocol: "HTTPS",
|
|
2857
|
+
pathname: `/dingtalk/v1/documents/deleteWorkspaceMembers`,
|
|
2858
|
+
method: "POST",
|
|
2859
|
+
authType: "AK",
|
|
2860
|
+
style: "ROA",
|
|
2861
|
+
reqBodyType: "formData",
|
|
2862
|
+
bodyType: "json",
|
|
2863
|
+
});
|
|
2864
|
+
return $tea.cast<DeleteWorkspaceMembersResponse>(await this.callApi(params, req, runtime), new DeleteWorkspaceMembersResponse({}));
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
async deleteWorkspaceMembers(request: DeleteWorkspaceMembersRequest): Promise<DeleteWorkspaceMembersResponse> {
|
|
2868
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2869
|
+
let headers = new DeleteWorkspaceMembersHeaders({ });
|
|
2870
|
+
return await this.deleteWorkspaceMembersWithOptions(request, headers, runtime);
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
async getUserWithOptions(tmpReq: GetUserRequest, tmpHeader: GetUserHeaders, runtime: $Util.RuntimeOptions): Promise<GetUserResponse> {
|
|
2874
|
+
Util.validateModel(tmpReq);
|
|
2875
|
+
let request = new GetUserShrinkRequest({ });
|
|
2876
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2877
|
+
let headers = new GetUserShrinkHeaders({ });
|
|
2878
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2879
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2880
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2884
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
let body : {[key: string ]: any} = { };
|
|
2888
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2889
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
if (!Util.isUnset(request.language)) {
|
|
2893
|
+
body["language"] = request.language;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2897
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2898
|
+
realHeaders = headers.commonHeaders;
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2902
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2906
|
+
headers: realHeaders,
|
|
2907
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2908
|
+
});
|
|
2909
|
+
let params = new $OpenApi.Params({
|
|
2910
|
+
action: "GetUser",
|
|
2911
|
+
version: "2023-04-26",
|
|
2912
|
+
protocol: "HTTPS",
|
|
2913
|
+
pathname: `/dingtalk/v1/im/getUser`,
|
|
2914
|
+
method: "POST",
|
|
2915
|
+
authType: "AK",
|
|
2916
|
+
style: "ROA",
|
|
2917
|
+
reqBodyType: "formData",
|
|
2918
|
+
bodyType: "json",
|
|
2919
|
+
});
|
|
2920
|
+
return $tea.cast<GetUserResponse>(await this.callApi(params, req, runtime), new GetUserResponse({}));
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
async getUser(request: GetUserRequest): Promise<GetUserResponse> {
|
|
2924
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2925
|
+
let headers = new GetUserHeaders({ });
|
|
2926
|
+
return await this.getUserWithOptions(request, headers, runtime);
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
async insertRowsBeforeWithOptions(tmpReq: InsertRowsBeforeRequest, tmpHeader: InsertRowsBeforeHeaders, runtime: $Util.RuntimeOptions): Promise<InsertRowsBeforeResponse> {
|
|
2930
|
+
Util.validateModel(tmpReq);
|
|
2931
|
+
let request = new InsertRowsBeforeShrinkRequest({ });
|
|
2932
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2933
|
+
let headers = new InsertRowsBeforeShrinkHeaders({ });
|
|
2934
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
2935
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
2936
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
2940
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
let body : {[key: string ]: any} = { };
|
|
2944
|
+
if (!Util.isUnset(request.row)) {
|
|
2945
|
+
body["Row"] = request.row;
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
if (!Util.isUnset(request.rowCount)) {
|
|
2949
|
+
body["RowCount"] = request.rowCount;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
if (!Util.isUnset(request.sheetId)) {
|
|
2953
|
+
body["SheetId"] = request.sheetId;
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
2957
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
if (!Util.isUnset(request.workbookId)) {
|
|
2961
|
+
body["WorkbookId"] = request.workbookId;
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
2965
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
2966
|
+
realHeaders = headers.commonHeaders;
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
2970
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2974
|
+
headers: realHeaders,
|
|
2975
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2976
|
+
});
|
|
2977
|
+
let params = new $OpenApi.Params({
|
|
2978
|
+
action: "InsertRowsBefore",
|
|
2979
|
+
version: "2023-04-26",
|
|
2980
|
+
protocol: "HTTPS",
|
|
2981
|
+
pathname: `/dingtalk/v1/documents/insertRowsBefore`,
|
|
2982
|
+
method: "POST",
|
|
2983
|
+
authType: "AK",
|
|
2984
|
+
style: "ROA",
|
|
2985
|
+
reqBodyType: "formData",
|
|
2986
|
+
bodyType: "json",
|
|
2987
|
+
});
|
|
2988
|
+
return $tea.cast<InsertRowsBeforeResponse>(await this.callApi(params, req, runtime), new InsertRowsBeforeResponse({}));
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
async insertRowsBefore(request: InsertRowsBeforeRequest): Promise<InsertRowsBeforeResponse> {
|
|
2992
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2993
|
+
let headers = new InsertRowsBeforeHeaders({ });
|
|
2994
|
+
return await this.insertRowsBeforeWithOptions(request, headers, runtime);
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
async updateWorkspaceDocMembersWithOptions(tmpReq: UpdateWorkspaceDocMembersRequest, tmpHeader: UpdateWorkspaceDocMembersHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateWorkspaceDocMembersResponse> {
|
|
2998
|
+
Util.validateModel(tmpReq);
|
|
2999
|
+
let request = new UpdateWorkspaceDocMembersShrinkRequest({ });
|
|
3000
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3001
|
+
let headers = new UpdateWorkspaceDocMembersShrinkHeaders({ });
|
|
3002
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
3003
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
3004
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
if (!Util.isUnset(tmpReq.members)) {
|
|
3008
|
+
request.membersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json");
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
3012
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
let body : {[key: string ]: any} = { };
|
|
3016
|
+
if (!Util.isUnset(request.membersShrink)) {
|
|
3017
|
+
body["Members"] = request.membersShrink;
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
if (!Util.isUnset(request.nodeId)) {
|
|
3021
|
+
body["NodeId"] = request.nodeId;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
3025
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
3029
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
3033
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
3034
|
+
realHeaders = headers.commonHeaders;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
3038
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3042
|
+
headers: realHeaders,
|
|
3043
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3044
|
+
});
|
|
3045
|
+
let params = new $OpenApi.Params({
|
|
3046
|
+
action: "UpdateWorkspaceDocMembers",
|
|
3047
|
+
version: "2023-04-26",
|
|
3048
|
+
protocol: "HTTPS",
|
|
3049
|
+
pathname: `/dingtalk/v1/documents/updateWorkspaceDocMembers`,
|
|
3050
|
+
method: "POST",
|
|
3051
|
+
authType: "AK",
|
|
3052
|
+
style: "ROA",
|
|
3053
|
+
reqBodyType: "formData",
|
|
3054
|
+
bodyType: "json",
|
|
3055
|
+
});
|
|
3056
|
+
return $tea.cast<UpdateWorkspaceDocMembersResponse>(await this.callApi(params, req, runtime), new UpdateWorkspaceDocMembersResponse({}));
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
async updateWorkspaceDocMembers(request: UpdateWorkspaceDocMembersRequest): Promise<UpdateWorkspaceDocMembersResponse> {
|
|
3060
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3061
|
+
let headers = new UpdateWorkspaceDocMembersHeaders({ });
|
|
3062
|
+
return await this.updateWorkspaceDocMembersWithOptions(request, headers, runtime);
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
async updateWorkspaceMembersWithOptions(tmpReq: UpdateWorkspaceMembersRequest, tmpHeader: UpdateWorkspaceMembersHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateWorkspaceMembersResponse> {
|
|
3066
|
+
Util.validateModel(tmpReq);
|
|
3067
|
+
let request = new UpdateWorkspaceMembersShrinkRequest({ });
|
|
3068
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3069
|
+
let headers = new UpdateWorkspaceMembersShrinkHeaders({ });
|
|
3070
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
3071
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
3072
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
if (!Util.isUnset(tmpReq.members)) {
|
|
3076
|
+
request.membersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json");
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
3080
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
let body : {[key: string ]: any} = { };
|
|
3084
|
+
if (!Util.isUnset(request.membersShrink)) {
|
|
3085
|
+
body["Members"] = request.membersShrink;
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
3089
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
if (!Util.isUnset(request.workspaceId)) {
|
|
3093
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
3097
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
3098
|
+
realHeaders = headers.commonHeaders;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
3102
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3106
|
+
headers: realHeaders,
|
|
3107
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3108
|
+
});
|
|
3109
|
+
let params = new $OpenApi.Params({
|
|
3110
|
+
action: "UpdateWorkspaceMembers",
|
|
3111
|
+
version: "2023-04-26",
|
|
3112
|
+
protocol: "HTTPS",
|
|
3113
|
+
pathname: `/dingtalk/v1/documents/updateWorkspaceMembers`,
|
|
3114
|
+
method: "POST",
|
|
3115
|
+
authType: "AK",
|
|
3116
|
+
style: "ROA",
|
|
3117
|
+
reqBodyType: "formData",
|
|
3118
|
+
bodyType: "json",
|
|
3119
|
+
});
|
|
3120
|
+
return $tea.cast<UpdateWorkspaceMembersResponse>(await this.callApi(params, req, runtime), new UpdateWorkspaceMembersResponse({}));
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
async updateWorkspaceMembers(request: UpdateWorkspaceMembersRequest): Promise<UpdateWorkspaceMembersResponse> {
|
|
3124
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3125
|
+
let headers = new UpdateWorkspaceMembersHeaders({ });
|
|
3126
|
+
return await this.updateWorkspaceMembersWithOptions(request, headers, runtime);
|
|
3127
|
+
}
|
|
3128
|
+
|
|
33
3129
|
}
|