@alicloud/aliding20230426 1.2.0 → 1.3.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/src/client.ts CHANGED
@@ -440,6 +440,273 @@ export class CreateSheetResponse extends $tea.Model {
440
440
  }
441
441
  }
442
442
 
443
+ export class CreateTodoTaskHeaders extends $tea.Model {
444
+ commonHeaders?: { [key: string]: string };
445
+ accountContext?: CreateTodoTaskHeadersAccountContext;
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: CreateTodoTaskHeadersAccountContext,
457
+ };
458
+ }
459
+
460
+ constructor(map?: { [key: string]: any }) {
461
+ super(map);
462
+ }
463
+ }
464
+
465
+ export class CreateTodoTaskShrinkHeaders 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 CreateTodoTaskRequest extends $tea.Model {
488
+ tenantContext?: CreateTodoTaskRequestTenantContext;
489
+ contentFieldList?: CreateTodoTaskRequestContentFieldList[];
490
+ creatorId?: string;
491
+ description?: string;
492
+ detailUrl?: CreateTodoTaskRequestDetailUrl;
493
+ dueTime?: number;
494
+ executorIds?: string[];
495
+ isOnlyShowExecutor?: boolean;
496
+ notifyConfigs?: CreateTodoTaskRequestNotifyConfigs;
497
+ operatorId?: string;
498
+ participantIds?: string[];
499
+ priority?: number;
500
+ sourceId?: string;
501
+ subject?: string;
502
+ static names(): { [key: string]: string } {
503
+ return {
504
+ tenantContext: 'TenantContext',
505
+ contentFieldList: 'contentFieldList',
506
+ creatorId: 'creatorId',
507
+ description: 'description',
508
+ detailUrl: 'detailUrl',
509
+ dueTime: 'dueTime',
510
+ executorIds: 'executorIds',
511
+ isOnlyShowExecutor: 'isOnlyShowExecutor',
512
+ notifyConfigs: 'notifyConfigs',
513
+ operatorId: 'operatorId',
514
+ participantIds: 'participantIds',
515
+ priority: 'priority',
516
+ sourceId: 'sourceId',
517
+ subject: 'subject',
518
+ };
519
+ }
520
+
521
+ static types(): { [key: string]: any } {
522
+ return {
523
+ tenantContext: CreateTodoTaskRequestTenantContext,
524
+ contentFieldList: { 'type': 'array', 'itemType': CreateTodoTaskRequestContentFieldList },
525
+ creatorId: 'string',
526
+ description: 'string',
527
+ detailUrl: CreateTodoTaskRequestDetailUrl,
528
+ dueTime: 'number',
529
+ executorIds: { 'type': 'array', 'itemType': 'string' },
530
+ isOnlyShowExecutor: 'boolean',
531
+ notifyConfigs: CreateTodoTaskRequestNotifyConfigs,
532
+ operatorId: 'string',
533
+ participantIds: { 'type': 'array', 'itemType': 'string' },
534
+ priority: 'number',
535
+ sourceId: 'string',
536
+ subject: 'string',
537
+ };
538
+ }
539
+
540
+ constructor(map?: { [key: string]: any }) {
541
+ super(map);
542
+ }
543
+ }
544
+
545
+ export class CreateTodoTaskShrinkRequest extends $tea.Model {
546
+ tenantContextShrink?: string;
547
+ contentFieldListShrink?: string;
548
+ creatorId?: string;
549
+ description?: string;
550
+ detailUrlShrink?: string;
551
+ dueTime?: number;
552
+ executorIdsShrink?: string;
553
+ isOnlyShowExecutor?: boolean;
554
+ notifyConfigsShrink?: string;
555
+ operatorId?: string;
556
+ participantIdsShrink?: string;
557
+ priority?: number;
558
+ sourceId?: string;
559
+ subject?: string;
560
+ static names(): { [key: string]: string } {
561
+ return {
562
+ tenantContextShrink: 'TenantContext',
563
+ contentFieldListShrink: 'contentFieldList',
564
+ creatorId: 'creatorId',
565
+ description: 'description',
566
+ detailUrlShrink: 'detailUrl',
567
+ dueTime: 'dueTime',
568
+ executorIdsShrink: 'executorIds',
569
+ isOnlyShowExecutor: 'isOnlyShowExecutor',
570
+ notifyConfigsShrink: 'notifyConfigs',
571
+ operatorId: 'operatorId',
572
+ participantIdsShrink: 'participantIds',
573
+ priority: 'priority',
574
+ sourceId: 'sourceId',
575
+ subject: 'subject',
576
+ };
577
+ }
578
+
579
+ static types(): { [key: string]: any } {
580
+ return {
581
+ tenantContextShrink: 'string',
582
+ contentFieldListShrink: 'string',
583
+ creatorId: 'string',
584
+ description: 'string',
585
+ detailUrlShrink: 'string',
586
+ dueTime: 'number',
587
+ executorIdsShrink: 'string',
588
+ isOnlyShowExecutor: 'boolean',
589
+ notifyConfigsShrink: 'string',
590
+ operatorId: 'string',
591
+ participantIdsShrink: 'string',
592
+ priority: 'number',
593
+ sourceId: 'string',
594
+ subject: 'string',
595
+ };
596
+ }
597
+
598
+ constructor(map?: { [key: string]: any }) {
599
+ super(map);
600
+ }
601
+ }
602
+
603
+ export class CreateTodoTaskResponseBody extends $tea.Model {
604
+ bizTag?: string;
605
+ contentFieldList?: CreateTodoTaskResponseBodyContentFieldList[];
606
+ createdTime?: number;
607
+ creatorId?: string;
608
+ description?: string;
609
+ detailUrl?: CreateTodoTaskResponseBodyDetailUrl;
610
+ done?: boolean;
611
+ dueTime?: number;
612
+ executorIds?: string[];
613
+ finishTime?: number;
614
+ id?: string;
615
+ isOnlyShowExecutor?: boolean;
616
+ modifiedTime?: number;
617
+ modifierId?: string;
618
+ notifyConfigs?: CreateTodoTaskResponseBodyNotifyConfigs;
619
+ participantIds?: string[];
620
+ priority?: number;
621
+ requestId?: string;
622
+ source?: string;
623
+ sourceId?: string;
624
+ startTime?: number;
625
+ subject?: string;
626
+ static names(): { [key: string]: string } {
627
+ return {
628
+ bizTag: 'bizTag',
629
+ contentFieldList: 'contentFieldList',
630
+ createdTime: 'createdTime',
631
+ creatorId: 'creatorId',
632
+ description: 'description',
633
+ detailUrl: 'detailUrl',
634
+ done: 'done',
635
+ dueTime: 'dueTime',
636
+ executorIds: 'executorIds',
637
+ finishTime: 'finishTime',
638
+ id: 'id',
639
+ isOnlyShowExecutor: 'isOnlyShowExecutor',
640
+ modifiedTime: 'modifiedTime',
641
+ modifierId: 'modifierId',
642
+ notifyConfigs: 'notifyConfigs',
643
+ participantIds: 'participantIds',
644
+ priority: 'priority',
645
+ requestId: 'requestId',
646
+ source: 'source',
647
+ sourceId: 'sourceId',
648
+ startTime: 'startTime',
649
+ subject: 'subject',
650
+ };
651
+ }
652
+
653
+ static types(): { [key: string]: any } {
654
+ return {
655
+ bizTag: 'string',
656
+ contentFieldList: { 'type': 'array', 'itemType': CreateTodoTaskResponseBodyContentFieldList },
657
+ createdTime: 'number',
658
+ creatorId: 'string',
659
+ description: 'string',
660
+ detailUrl: CreateTodoTaskResponseBodyDetailUrl,
661
+ done: 'boolean',
662
+ dueTime: 'number',
663
+ executorIds: { 'type': 'array', 'itemType': 'string' },
664
+ finishTime: 'number',
665
+ id: 'string',
666
+ isOnlyShowExecutor: 'boolean',
667
+ modifiedTime: 'number',
668
+ modifierId: 'string',
669
+ notifyConfigs: CreateTodoTaskResponseBodyNotifyConfigs,
670
+ participantIds: { 'type': 'array', 'itemType': 'string' },
671
+ priority: 'number',
672
+ requestId: 'string',
673
+ source: 'string',
674
+ sourceId: 'string',
675
+ startTime: 'number',
676
+ subject: 'string',
677
+ };
678
+ }
679
+
680
+ constructor(map?: { [key: string]: any }) {
681
+ super(map);
682
+ }
683
+ }
684
+
685
+ export class CreateTodoTaskResponse extends $tea.Model {
686
+ headers: { [key: string]: string };
687
+ statusCode: number;
688
+ body: CreateTodoTaskResponseBody;
689
+ static names(): { [key: string]: string } {
690
+ return {
691
+ headers: 'headers',
692
+ statusCode: 'statusCode',
693
+ body: 'body',
694
+ };
695
+ }
696
+
697
+ static types(): { [key: string]: any } {
698
+ return {
699
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
700
+ statusCode: 'number',
701
+ body: CreateTodoTaskResponseBody,
702
+ };
703
+ }
704
+
705
+ constructor(map?: { [key: string]: any }) {
706
+ super(map);
707
+ }
708
+ }
709
+
443
710
  export class CreateWorkspaceHeaders extends $tea.Model {
444
711
  commonHeaders?: { [key: string]: string };
445
712
  accountContext?: CreateWorkspaceHeadersAccountContext;
@@ -764,6 +1031,147 @@ export class CreateWorkspaceDocResponse extends $tea.Model {
764
1031
  }
765
1032
  }
766
1033
 
1034
+ export class DeleteTodoTaskHeaders extends $tea.Model {
1035
+ commonHeaders?: { [key: string]: string };
1036
+ accountContext?: DeleteTodoTaskHeadersAccountContext;
1037
+ static names(): { [key: string]: string } {
1038
+ return {
1039
+ commonHeaders: 'commonHeaders',
1040
+ accountContext: 'AccountContext',
1041
+ };
1042
+ }
1043
+
1044
+ static types(): { [key: string]: any } {
1045
+ return {
1046
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1047
+ accountContext: DeleteTodoTaskHeadersAccountContext,
1048
+ };
1049
+ }
1050
+
1051
+ constructor(map?: { [key: string]: any }) {
1052
+ super(map);
1053
+ }
1054
+ }
1055
+
1056
+ export class DeleteTodoTaskShrinkHeaders extends $tea.Model {
1057
+ commonHeaders?: { [key: string]: string };
1058
+ accountContextShrink?: string;
1059
+ static names(): { [key: string]: string } {
1060
+ return {
1061
+ commonHeaders: 'commonHeaders',
1062
+ accountContextShrink: 'AccountContext',
1063
+ };
1064
+ }
1065
+
1066
+ static types(): { [key: string]: any } {
1067
+ return {
1068
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1069
+ accountContextShrink: 'string',
1070
+ };
1071
+ }
1072
+
1073
+ constructor(map?: { [key: string]: any }) {
1074
+ super(map);
1075
+ }
1076
+ }
1077
+
1078
+ export class DeleteTodoTaskRequest extends $tea.Model {
1079
+ tenantContext?: DeleteTodoTaskRequestTenantContext;
1080
+ operatorId?: string;
1081
+ taskId?: string;
1082
+ static names(): { [key: string]: string } {
1083
+ return {
1084
+ tenantContext: 'TenantContext',
1085
+ operatorId: 'operatorId',
1086
+ taskId: 'taskId',
1087
+ };
1088
+ }
1089
+
1090
+ static types(): { [key: string]: any } {
1091
+ return {
1092
+ tenantContext: DeleteTodoTaskRequestTenantContext,
1093
+ operatorId: 'string',
1094
+ taskId: 'string',
1095
+ };
1096
+ }
1097
+
1098
+ constructor(map?: { [key: string]: any }) {
1099
+ super(map);
1100
+ }
1101
+ }
1102
+
1103
+ export class DeleteTodoTaskShrinkRequest extends $tea.Model {
1104
+ tenantContextShrink?: string;
1105
+ operatorId?: string;
1106
+ taskId?: string;
1107
+ static names(): { [key: string]: string } {
1108
+ return {
1109
+ tenantContextShrink: 'TenantContext',
1110
+ operatorId: 'operatorId',
1111
+ taskId: 'taskId',
1112
+ };
1113
+ }
1114
+
1115
+ static types(): { [key: string]: any } {
1116
+ return {
1117
+ tenantContextShrink: 'string',
1118
+ operatorId: 'string',
1119
+ taskId: 'string',
1120
+ };
1121
+ }
1122
+
1123
+ constructor(map?: { [key: string]: any }) {
1124
+ super(map);
1125
+ }
1126
+ }
1127
+
1128
+ export class DeleteTodoTaskResponseBody extends $tea.Model {
1129
+ requestId?: string;
1130
+ result?: boolean;
1131
+ static names(): { [key: string]: string } {
1132
+ return {
1133
+ requestId: 'requestId',
1134
+ result: 'result',
1135
+ };
1136
+ }
1137
+
1138
+ static types(): { [key: string]: any } {
1139
+ return {
1140
+ requestId: 'string',
1141
+ result: 'boolean',
1142
+ };
1143
+ }
1144
+
1145
+ constructor(map?: { [key: string]: any }) {
1146
+ super(map);
1147
+ }
1148
+ }
1149
+
1150
+ export class DeleteTodoTaskResponse extends $tea.Model {
1151
+ headers: { [key: string]: string };
1152
+ statusCode: number;
1153
+ body: DeleteTodoTaskResponseBody;
1154
+ static names(): { [key: string]: string } {
1155
+ return {
1156
+ headers: 'headers',
1157
+ statusCode: 'statusCode',
1158
+ body: 'body',
1159
+ };
1160
+ }
1161
+
1162
+ static types(): { [key: string]: any } {
1163
+ return {
1164
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1165
+ statusCode: 'number',
1166
+ body: DeleteTodoTaskResponseBody,
1167
+ };
1168
+ }
1169
+
1170
+ constructor(map?: { [key: string]: any }) {
1171
+ super(map);
1172
+ }
1173
+ }
1174
+
767
1175
  export class DeleteWorkspaceDocMembersHeaders extends $tea.Model {
768
1176
  commonHeaders?: { [key: string]: string };
769
1177
  accountContext?: DeleteWorkspaceDocMembersHeadersAccountContext;
@@ -1427,9 +1835,9 @@ export class InsertRowsBeforeResponse extends $tea.Model {
1427
1835
  }
1428
1836
  }
1429
1837
 
1430
- export class UpdateWorkspaceDocMembersHeaders extends $tea.Model {
1838
+ export class QueryOrgTodoTasksHeaders extends $tea.Model {
1431
1839
  commonHeaders?: { [key: string]: string };
1432
- accountContext?: UpdateWorkspaceDocMembersHeadersAccountContext;
1840
+ accountContext?: QueryOrgTodoTasksHeadersAccountContext;
1433
1841
  static names(): { [key: string]: string } {
1434
1842
  return {
1435
1843
  commonHeaders: 'commonHeaders',
@@ -1440,7 +1848,7 @@ export class UpdateWorkspaceDocMembersHeaders extends $tea.Model {
1440
1848
  static types(): { [key: string]: any } {
1441
1849
  return {
1442
1850
  commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1443
- accountContext: UpdateWorkspaceDocMembersHeadersAccountContext,
1851
+ accountContext: QueryOrgTodoTasksHeadersAccountContext,
1444
1852
  };
1445
1853
  }
1446
1854
 
@@ -1449,7 +1857,7 @@ export class UpdateWorkspaceDocMembersHeaders extends $tea.Model {
1449
1857
  }
1450
1858
  }
1451
1859
 
1452
- export class UpdateWorkspaceDocMembersShrinkHeaders extends $tea.Model {
1860
+ export class QueryOrgTodoTasksShrinkHeaders extends $tea.Model {
1453
1861
  commonHeaders?: { [key: string]: string };
1454
1862
  accountContextShrink?: string;
1455
1863
  static names(): { [key: string]: string } {
@@ -1471,26 +1879,488 @@ export class UpdateWorkspaceDocMembersShrinkHeaders extends $tea.Model {
1471
1879
  }
1472
1880
  }
1473
1881
 
1474
- export class UpdateWorkspaceDocMembersRequest extends $tea.Model {
1475
- members?: UpdateWorkspaceDocMembersRequestMembers[];
1476
- nodeId?: string;
1477
- tenantContext?: UpdateWorkspaceDocMembersRequestTenantContext;
1478
- workspaceId?: string;
1882
+ export class QueryOrgTodoTasksRequest extends $tea.Model {
1883
+ tenantContext?: QueryOrgTodoTasksRequestTenantContext;
1884
+ isDone?: boolean;
1885
+ nextToken?: string;
1479
1886
  static names(): { [key: string]: string } {
1480
1887
  return {
1481
- members: 'Members',
1482
- nodeId: 'NodeId',
1483
1888
  tenantContext: 'TenantContext',
1484
- workspaceId: 'WorkspaceId',
1889
+ isDone: 'isDone',
1890
+ nextToken: 'nextToken',
1485
1891
  };
1486
1892
  }
1487
1893
 
1488
1894
  static types(): { [key: string]: any } {
1489
1895
  return {
1490
- members: { 'type': 'array', 'itemType': UpdateWorkspaceDocMembersRequestMembers },
1491
- nodeId: 'string',
1492
- tenantContext: UpdateWorkspaceDocMembersRequestTenantContext,
1493
- workspaceId: 'string',
1896
+ tenantContext: QueryOrgTodoTasksRequestTenantContext,
1897
+ isDone: 'boolean',
1898
+ nextToken: 'string',
1899
+ };
1900
+ }
1901
+
1902
+ constructor(map?: { [key: string]: any }) {
1903
+ super(map);
1904
+ }
1905
+ }
1906
+
1907
+ export class QueryOrgTodoTasksShrinkRequest extends $tea.Model {
1908
+ tenantContextShrink?: string;
1909
+ isDone?: boolean;
1910
+ nextToken?: string;
1911
+ static names(): { [key: string]: string } {
1912
+ return {
1913
+ tenantContextShrink: 'TenantContext',
1914
+ isDone: 'isDone',
1915
+ nextToken: 'nextToken',
1916
+ };
1917
+ }
1918
+
1919
+ static types(): { [key: string]: any } {
1920
+ return {
1921
+ tenantContextShrink: 'string',
1922
+ isDone: 'boolean',
1923
+ nextToken: 'string',
1924
+ };
1925
+ }
1926
+
1927
+ constructor(map?: { [key: string]: any }) {
1928
+ super(map);
1929
+ }
1930
+ }
1931
+
1932
+ export class QueryOrgTodoTasksResponseBody extends $tea.Model {
1933
+ nextToken?: string;
1934
+ requestId?: string;
1935
+ todoCards?: QueryOrgTodoTasksResponseBodyTodoCards[];
1936
+ static names(): { [key: string]: string } {
1937
+ return {
1938
+ nextToken: 'nextToken',
1939
+ requestId: 'requestId',
1940
+ todoCards: 'todoCards',
1941
+ };
1942
+ }
1943
+
1944
+ static types(): { [key: string]: any } {
1945
+ return {
1946
+ nextToken: 'string',
1947
+ requestId: 'string',
1948
+ todoCards: { 'type': 'array', 'itemType': QueryOrgTodoTasksResponseBodyTodoCards },
1949
+ };
1950
+ }
1951
+
1952
+ constructor(map?: { [key: string]: any }) {
1953
+ super(map);
1954
+ }
1955
+ }
1956
+
1957
+ export class QueryOrgTodoTasksResponse extends $tea.Model {
1958
+ headers: { [key: string]: string };
1959
+ statusCode: number;
1960
+ body: QueryOrgTodoTasksResponseBody;
1961
+ static names(): { [key: string]: string } {
1962
+ return {
1963
+ headers: 'headers',
1964
+ statusCode: 'statusCode',
1965
+ body: 'body',
1966
+ };
1967
+ }
1968
+
1969
+ static types(): { [key: string]: any } {
1970
+ return {
1971
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1972
+ statusCode: 'number',
1973
+ body: QueryOrgTodoTasksResponseBody,
1974
+ };
1975
+ }
1976
+
1977
+ constructor(map?: { [key: string]: any }) {
1978
+ super(map);
1979
+ }
1980
+ }
1981
+
1982
+ export class UpdateTodoTaskHeaders extends $tea.Model {
1983
+ commonHeaders?: { [key: string]: string };
1984
+ accountContext?: UpdateTodoTaskHeadersAccountContext;
1985
+ static names(): { [key: string]: string } {
1986
+ return {
1987
+ commonHeaders: 'commonHeaders',
1988
+ accountContext: 'AccountContext',
1989
+ };
1990
+ }
1991
+
1992
+ static types(): { [key: string]: any } {
1993
+ return {
1994
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1995
+ accountContext: UpdateTodoTaskHeadersAccountContext,
1996
+ };
1997
+ }
1998
+
1999
+ constructor(map?: { [key: string]: any }) {
2000
+ super(map);
2001
+ }
2002
+ }
2003
+
2004
+ export class UpdateTodoTaskShrinkHeaders extends $tea.Model {
2005
+ commonHeaders?: { [key: string]: string };
2006
+ accountContextShrink?: string;
2007
+ static names(): { [key: string]: string } {
2008
+ return {
2009
+ commonHeaders: 'commonHeaders',
2010
+ accountContextShrink: 'AccountContext',
2011
+ };
2012
+ }
2013
+
2014
+ static types(): { [key: string]: any } {
2015
+ return {
2016
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2017
+ accountContextShrink: 'string',
2018
+ };
2019
+ }
2020
+
2021
+ constructor(map?: { [key: string]: any }) {
2022
+ super(map);
2023
+ }
2024
+ }
2025
+
2026
+ export class UpdateTodoTaskRequest extends $tea.Model {
2027
+ tenantContext?: UpdateTodoTaskRequestTenantContext;
2028
+ description?: string;
2029
+ done?: boolean;
2030
+ dueTime?: number;
2031
+ executorIds?: string[];
2032
+ participantIds?: string[];
2033
+ subject?: string;
2034
+ taskId?: string;
2035
+ static names(): { [key: string]: string } {
2036
+ return {
2037
+ tenantContext: 'TenantContext',
2038
+ description: 'description',
2039
+ done: 'done',
2040
+ dueTime: 'dueTime',
2041
+ executorIds: 'executorIds',
2042
+ participantIds: 'participantIds',
2043
+ subject: 'subject',
2044
+ taskId: 'taskId',
2045
+ };
2046
+ }
2047
+
2048
+ static types(): { [key: string]: any } {
2049
+ return {
2050
+ tenantContext: UpdateTodoTaskRequestTenantContext,
2051
+ description: 'string',
2052
+ done: 'boolean',
2053
+ dueTime: 'number',
2054
+ executorIds: { 'type': 'array', 'itemType': 'string' },
2055
+ participantIds: { 'type': 'array', 'itemType': 'string' },
2056
+ subject: 'string',
2057
+ taskId: 'string',
2058
+ };
2059
+ }
2060
+
2061
+ constructor(map?: { [key: string]: any }) {
2062
+ super(map);
2063
+ }
2064
+ }
2065
+
2066
+ export class UpdateTodoTaskShrinkRequest extends $tea.Model {
2067
+ tenantContextShrink?: string;
2068
+ description?: string;
2069
+ done?: boolean;
2070
+ dueTime?: number;
2071
+ executorIdsShrink?: string;
2072
+ participantIdsShrink?: string;
2073
+ subject?: string;
2074
+ taskId?: string;
2075
+ static names(): { [key: string]: string } {
2076
+ return {
2077
+ tenantContextShrink: 'TenantContext',
2078
+ description: 'description',
2079
+ done: 'done',
2080
+ dueTime: 'dueTime',
2081
+ executorIdsShrink: 'executorIds',
2082
+ participantIdsShrink: 'participantIds',
2083
+ subject: 'subject',
2084
+ taskId: 'taskId',
2085
+ };
2086
+ }
2087
+
2088
+ static types(): { [key: string]: any } {
2089
+ return {
2090
+ tenantContextShrink: 'string',
2091
+ description: 'string',
2092
+ done: 'boolean',
2093
+ dueTime: 'number',
2094
+ executorIdsShrink: 'string',
2095
+ participantIdsShrink: 'string',
2096
+ subject: 'string',
2097
+ taskId: 'string',
2098
+ };
2099
+ }
2100
+
2101
+ constructor(map?: { [key: string]: any }) {
2102
+ super(map);
2103
+ }
2104
+ }
2105
+
2106
+ export class UpdateTodoTaskResponseBody extends $tea.Model {
2107
+ requestId?: string;
2108
+ result?: boolean;
2109
+ static names(): { [key: string]: string } {
2110
+ return {
2111
+ requestId: 'requestId',
2112
+ result: 'result',
2113
+ };
2114
+ }
2115
+
2116
+ static types(): { [key: string]: any } {
2117
+ return {
2118
+ requestId: 'string',
2119
+ result: 'boolean',
2120
+ };
2121
+ }
2122
+
2123
+ constructor(map?: { [key: string]: any }) {
2124
+ super(map);
2125
+ }
2126
+ }
2127
+
2128
+ export class UpdateTodoTaskResponse extends $tea.Model {
2129
+ headers: { [key: string]: string };
2130
+ statusCode: number;
2131
+ body: UpdateTodoTaskResponseBody;
2132
+ static names(): { [key: string]: string } {
2133
+ return {
2134
+ headers: 'headers',
2135
+ statusCode: 'statusCode',
2136
+ body: 'body',
2137
+ };
2138
+ }
2139
+
2140
+ static types(): { [key: string]: any } {
2141
+ return {
2142
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2143
+ statusCode: 'number',
2144
+ body: UpdateTodoTaskResponseBody,
2145
+ };
2146
+ }
2147
+
2148
+ constructor(map?: { [key: string]: any }) {
2149
+ super(map);
2150
+ }
2151
+ }
2152
+
2153
+ export class UpdateTodoTaskExecutorStatusHeaders extends $tea.Model {
2154
+ commonHeaders?: { [key: string]: string };
2155
+ accountContext?: UpdateTodoTaskExecutorStatusHeadersAccountContext;
2156
+ static names(): { [key: string]: string } {
2157
+ return {
2158
+ commonHeaders: 'commonHeaders',
2159
+ accountContext: 'AccountContext',
2160
+ };
2161
+ }
2162
+
2163
+ static types(): { [key: string]: any } {
2164
+ return {
2165
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2166
+ accountContext: UpdateTodoTaskExecutorStatusHeadersAccountContext,
2167
+ };
2168
+ }
2169
+
2170
+ constructor(map?: { [key: string]: any }) {
2171
+ super(map);
2172
+ }
2173
+ }
2174
+
2175
+ export class UpdateTodoTaskExecutorStatusShrinkHeaders extends $tea.Model {
2176
+ commonHeaders?: { [key: string]: string };
2177
+ accountContextShrink?: string;
2178
+ static names(): { [key: string]: string } {
2179
+ return {
2180
+ commonHeaders: 'commonHeaders',
2181
+ accountContextShrink: 'AccountContext',
2182
+ };
2183
+ }
2184
+
2185
+ static types(): { [key: string]: any } {
2186
+ return {
2187
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2188
+ accountContextShrink: 'string',
2189
+ };
2190
+ }
2191
+
2192
+ constructor(map?: { [key: string]: any }) {
2193
+ super(map);
2194
+ }
2195
+ }
2196
+
2197
+ export class UpdateTodoTaskExecutorStatusRequest extends $tea.Model {
2198
+ tenantContext?: UpdateTodoTaskExecutorStatusRequestTenantContext;
2199
+ executorStatusList?: UpdateTodoTaskExecutorStatusRequestExecutorStatusList[];
2200
+ operatorId?: string;
2201
+ taskId?: string;
2202
+ static names(): { [key: string]: string } {
2203
+ return {
2204
+ tenantContext: 'TenantContext',
2205
+ executorStatusList: 'executorStatusList',
2206
+ operatorId: 'operatorId',
2207
+ taskId: 'taskId',
2208
+ };
2209
+ }
2210
+
2211
+ static types(): { [key: string]: any } {
2212
+ return {
2213
+ tenantContext: UpdateTodoTaskExecutorStatusRequestTenantContext,
2214
+ executorStatusList: { 'type': 'array', 'itemType': UpdateTodoTaskExecutorStatusRequestExecutorStatusList },
2215
+ operatorId: 'string',
2216
+ taskId: 'string',
2217
+ };
2218
+ }
2219
+
2220
+ constructor(map?: { [key: string]: any }) {
2221
+ super(map);
2222
+ }
2223
+ }
2224
+
2225
+ export class UpdateTodoTaskExecutorStatusShrinkRequest extends $tea.Model {
2226
+ tenantContextShrink?: string;
2227
+ executorStatusListShrink?: string;
2228
+ operatorId?: string;
2229
+ taskId?: string;
2230
+ static names(): { [key: string]: string } {
2231
+ return {
2232
+ tenantContextShrink: 'TenantContext',
2233
+ executorStatusListShrink: 'executorStatusList',
2234
+ operatorId: 'operatorId',
2235
+ taskId: 'taskId',
2236
+ };
2237
+ }
2238
+
2239
+ static types(): { [key: string]: any } {
2240
+ return {
2241
+ tenantContextShrink: 'string',
2242
+ executorStatusListShrink: 'string',
2243
+ operatorId: 'string',
2244
+ taskId: 'string',
2245
+ };
2246
+ }
2247
+
2248
+ constructor(map?: { [key: string]: any }) {
2249
+ super(map);
2250
+ }
2251
+ }
2252
+
2253
+ export class UpdateTodoTaskExecutorStatusResponseBody extends $tea.Model {
2254
+ requestId?: string;
2255
+ result?: boolean;
2256
+ static names(): { [key: string]: string } {
2257
+ return {
2258
+ requestId: 'requestId',
2259
+ result: 'result',
2260
+ };
2261
+ }
2262
+
2263
+ static types(): { [key: string]: any } {
2264
+ return {
2265
+ requestId: 'string',
2266
+ result: 'boolean',
2267
+ };
2268
+ }
2269
+
2270
+ constructor(map?: { [key: string]: any }) {
2271
+ super(map);
2272
+ }
2273
+ }
2274
+
2275
+ export class UpdateTodoTaskExecutorStatusResponse extends $tea.Model {
2276
+ headers: { [key: string]: string };
2277
+ statusCode: number;
2278
+ body: UpdateTodoTaskExecutorStatusResponseBody;
2279
+ static names(): { [key: string]: string } {
2280
+ return {
2281
+ headers: 'headers',
2282
+ statusCode: 'statusCode',
2283
+ body: 'body',
2284
+ };
2285
+ }
2286
+
2287
+ static types(): { [key: string]: any } {
2288
+ return {
2289
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2290
+ statusCode: 'number',
2291
+ body: UpdateTodoTaskExecutorStatusResponseBody,
2292
+ };
2293
+ }
2294
+
2295
+ constructor(map?: { [key: string]: any }) {
2296
+ super(map);
2297
+ }
2298
+ }
2299
+
2300
+ export class UpdateWorkspaceDocMembersHeaders extends $tea.Model {
2301
+ commonHeaders?: { [key: string]: string };
2302
+ accountContext?: UpdateWorkspaceDocMembersHeadersAccountContext;
2303
+ static names(): { [key: string]: string } {
2304
+ return {
2305
+ commonHeaders: 'commonHeaders',
2306
+ accountContext: 'AccountContext',
2307
+ };
2308
+ }
2309
+
2310
+ static types(): { [key: string]: any } {
2311
+ return {
2312
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2313
+ accountContext: UpdateWorkspaceDocMembersHeadersAccountContext,
2314
+ };
2315
+ }
2316
+
2317
+ constructor(map?: { [key: string]: any }) {
2318
+ super(map);
2319
+ }
2320
+ }
2321
+
2322
+ export class UpdateWorkspaceDocMembersShrinkHeaders extends $tea.Model {
2323
+ commonHeaders?: { [key: string]: string };
2324
+ accountContextShrink?: string;
2325
+ static names(): { [key: string]: string } {
2326
+ return {
2327
+ commonHeaders: 'commonHeaders',
2328
+ accountContextShrink: 'AccountContext',
2329
+ };
2330
+ }
2331
+
2332
+ static types(): { [key: string]: any } {
2333
+ return {
2334
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2335
+ accountContextShrink: 'string',
2336
+ };
2337
+ }
2338
+
2339
+ constructor(map?: { [key: string]: any }) {
2340
+ super(map);
2341
+ }
2342
+ }
2343
+
2344
+ export class UpdateWorkspaceDocMembersRequest extends $tea.Model {
2345
+ members?: UpdateWorkspaceDocMembersRequestMembers[];
2346
+ nodeId?: string;
2347
+ tenantContext?: UpdateWorkspaceDocMembersRequestTenantContext;
2348
+ workspaceId?: string;
2349
+ static names(): { [key: string]: string } {
2350
+ return {
2351
+ members: 'Members',
2352
+ nodeId: 'NodeId',
2353
+ tenantContext: 'TenantContext',
2354
+ workspaceId: 'WorkspaceId',
2355
+ };
2356
+ }
2357
+
2358
+ static types(): { [key: string]: any } {
2359
+ return {
2360
+ members: { 'type': 'array', 'itemType': UpdateWorkspaceDocMembersRequestMembers },
2361
+ nodeId: 'string',
2362
+ tenantContext: UpdateWorkspaceDocMembersRequestTenantContext,
2363
+ workspaceId: 'string',
1494
2364
  };
1495
2365
  }
1496
2366
 
@@ -1734,17 +2604,219 @@ export class AddWorkspaceDocMembersRequestMembers extends $tea.Model {
1734
2604
  roleType?: string;
1735
2605
  static names(): { [key: string]: string } {
1736
2606
  return {
1737
- memberId: 'MemberId',
1738
- memberType: 'MemberType',
1739
- roleType: 'RoleType',
2607
+ memberId: 'MemberId',
2608
+ memberType: 'MemberType',
2609
+ roleType: 'RoleType',
2610
+ };
2611
+ }
2612
+
2613
+ static types(): { [key: string]: any } {
2614
+ return {
2615
+ memberId: 'string',
2616
+ memberType: 'string',
2617
+ roleType: 'string',
2618
+ };
2619
+ }
2620
+
2621
+ constructor(map?: { [key: string]: any }) {
2622
+ super(map);
2623
+ }
2624
+ }
2625
+
2626
+ export class AddWorkspaceDocMembersRequestTenantContext extends $tea.Model {
2627
+ tenantId?: string;
2628
+ static names(): { [key: string]: string } {
2629
+ return {
2630
+ tenantId: 'tenantId',
2631
+ };
2632
+ }
2633
+
2634
+ static types(): { [key: string]: any } {
2635
+ return {
2636
+ tenantId: 'string',
2637
+ };
2638
+ }
2639
+
2640
+ constructor(map?: { [key: string]: any }) {
2641
+ super(map);
2642
+ }
2643
+ }
2644
+
2645
+ export class AddWorkspaceMembersHeadersAccountContext extends $tea.Model {
2646
+ accountId?: string;
2647
+ static names(): { [key: string]: string } {
2648
+ return {
2649
+ accountId: 'accountId',
2650
+ };
2651
+ }
2652
+
2653
+ static types(): { [key: string]: any } {
2654
+ return {
2655
+ accountId: 'string',
2656
+ };
2657
+ }
2658
+
2659
+ constructor(map?: { [key: string]: any }) {
2660
+ super(map);
2661
+ }
2662
+ }
2663
+
2664
+ export class AddWorkspaceMembersRequestMembers extends $tea.Model {
2665
+ memberId?: string;
2666
+ memberType?: string;
2667
+ roleType?: string;
2668
+ static names(): { [key: string]: string } {
2669
+ return {
2670
+ memberId: 'MemberId',
2671
+ memberType: 'MemberType',
2672
+ roleType: 'RoleType',
2673
+ };
2674
+ }
2675
+
2676
+ static types(): { [key: string]: any } {
2677
+ return {
2678
+ memberId: 'string',
2679
+ memberType: 'string',
2680
+ roleType: 'string',
2681
+ };
2682
+ }
2683
+
2684
+ constructor(map?: { [key: string]: any }) {
2685
+ super(map);
2686
+ }
2687
+ }
2688
+
2689
+ export class AddWorkspaceMembersRequestTenantContext extends $tea.Model {
2690
+ tenantId?: string;
2691
+ static names(): { [key: string]: string } {
2692
+ return {
2693
+ tenantId: 'tenantId',
2694
+ };
2695
+ }
2696
+
2697
+ static types(): { [key: string]: any } {
2698
+ return {
2699
+ tenantId: 'string',
2700
+ };
2701
+ }
2702
+
2703
+ constructor(map?: { [key: string]: any }) {
2704
+ super(map);
2705
+ }
2706
+ }
2707
+
2708
+ export class CreateSheetHeadersAccountContext extends $tea.Model {
2709
+ accountId?: string;
2710
+ static names(): { [key: string]: string } {
2711
+ return {
2712
+ accountId: 'accountId',
2713
+ };
2714
+ }
2715
+
2716
+ static types(): { [key: string]: any } {
2717
+ return {
2718
+ accountId: 'string',
2719
+ };
2720
+ }
2721
+
2722
+ constructor(map?: { [key: string]: any }) {
2723
+ super(map);
2724
+ }
2725
+ }
2726
+
2727
+ export class CreateSheetRequestTenantContext extends $tea.Model {
2728
+ tenantId?: string;
2729
+ static names(): { [key: string]: string } {
2730
+ return {
2731
+ tenantId: 'tenantId',
2732
+ };
2733
+ }
2734
+
2735
+ static types(): { [key: string]: any } {
2736
+ return {
2737
+ tenantId: 'string',
2738
+ };
2739
+ }
2740
+
2741
+ constructor(map?: { [key: string]: any }) {
2742
+ super(map);
2743
+ }
2744
+ }
2745
+
2746
+ export class CreateTodoTaskHeadersAccountContext extends $tea.Model {
2747
+ accountId?: string;
2748
+ static names(): { [key: string]: string } {
2749
+ return {
2750
+ accountId: 'accountId',
2751
+ };
2752
+ }
2753
+
2754
+ static types(): { [key: string]: any } {
2755
+ return {
2756
+ accountId: 'string',
2757
+ };
2758
+ }
2759
+
2760
+ constructor(map?: { [key: string]: any }) {
2761
+ super(map);
2762
+ }
2763
+ }
2764
+
2765
+ export class CreateTodoTaskRequestTenantContext extends $tea.Model {
2766
+ tenantId?: string;
2767
+ static names(): { [key: string]: string } {
2768
+ return {
2769
+ tenantId: 'tenantId',
2770
+ };
2771
+ }
2772
+
2773
+ static types(): { [key: string]: any } {
2774
+ return {
2775
+ tenantId: 'string',
2776
+ };
2777
+ }
2778
+
2779
+ constructor(map?: { [key: string]: any }) {
2780
+ super(map);
2781
+ }
2782
+ }
2783
+
2784
+ export class CreateTodoTaskRequestContentFieldList extends $tea.Model {
2785
+ fieldKey?: string;
2786
+ fieldValue?: string;
2787
+ static names(): { [key: string]: string } {
2788
+ return {
2789
+ fieldKey: 'fieldKey',
2790
+ fieldValue: 'fieldValue',
2791
+ };
2792
+ }
2793
+
2794
+ static types(): { [key: string]: any } {
2795
+ return {
2796
+ fieldKey: 'string',
2797
+ fieldValue: 'string',
2798
+ };
2799
+ }
2800
+
2801
+ constructor(map?: { [key: string]: any }) {
2802
+ super(map);
2803
+ }
2804
+ }
2805
+
2806
+ export class CreateTodoTaskRequestDetailUrl extends $tea.Model {
2807
+ appUrl?: string;
2808
+ pcUrl?: string;
2809
+ static names(): { [key: string]: string } {
2810
+ return {
2811
+ appUrl: 'appUrl',
2812
+ pcUrl: 'pcUrl',
1740
2813
  };
1741
2814
  }
1742
2815
 
1743
2816
  static types(): { [key: string]: any } {
1744
2817
  return {
1745
- memberId: 'string',
1746
- memberType: 'string',
1747
- roleType: 'string',
2818
+ appUrl: 'string',
2819
+ pcUrl: 'string',
1748
2820
  };
1749
2821
  }
1750
2822
 
@@ -1753,17 +2825,17 @@ export class AddWorkspaceDocMembersRequestMembers extends $tea.Model {
1753
2825
  }
1754
2826
  }
1755
2827
 
1756
- export class AddWorkspaceDocMembersRequestTenantContext extends $tea.Model {
1757
- tenantId?: string;
2828
+ export class CreateTodoTaskRequestNotifyConfigs extends $tea.Model {
2829
+ dingNotify?: string;
1758
2830
  static names(): { [key: string]: string } {
1759
2831
  return {
1760
- tenantId: 'tenantId',
2832
+ dingNotify: 'dingNotify',
1761
2833
  };
1762
2834
  }
1763
2835
 
1764
2836
  static types(): { [key: string]: any } {
1765
2837
  return {
1766
- tenantId: 'string',
2838
+ dingNotify: 'string',
1767
2839
  };
1768
2840
  }
1769
2841
 
@@ -1772,17 +2844,20 @@ export class AddWorkspaceDocMembersRequestTenantContext extends $tea.Model {
1772
2844
  }
1773
2845
  }
1774
2846
 
1775
- export class AddWorkspaceMembersHeadersAccountContext extends $tea.Model {
1776
- accountId?: string;
2847
+ export class CreateTodoTaskResponseBodyContentFieldList extends $tea.Model {
2848
+ fieldKey?: string;
2849
+ fieldValue?: string;
1777
2850
  static names(): { [key: string]: string } {
1778
2851
  return {
1779
- accountId: 'accountId',
2852
+ fieldKey: 'fieldKey',
2853
+ fieldValue: 'fieldValue',
1780
2854
  };
1781
2855
  }
1782
2856
 
1783
2857
  static types(): { [key: string]: any } {
1784
2858
  return {
1785
- accountId: 'string',
2859
+ fieldKey: 'string',
2860
+ fieldValue: 'string',
1786
2861
  };
1787
2862
  }
1788
2863
 
@@ -1791,23 +2866,20 @@ export class AddWorkspaceMembersHeadersAccountContext extends $tea.Model {
1791
2866
  }
1792
2867
  }
1793
2868
 
1794
- export class AddWorkspaceMembersRequestMembers extends $tea.Model {
1795
- memberId?: string;
1796
- memberType?: string;
1797
- roleType?: string;
2869
+ export class CreateTodoTaskResponseBodyDetailUrl extends $tea.Model {
2870
+ appUrl?: string;
2871
+ pcUrl?: string;
1798
2872
  static names(): { [key: string]: string } {
1799
2873
  return {
1800
- memberId: 'MemberId',
1801
- memberType: 'MemberType',
1802
- roleType: 'RoleType',
2874
+ appUrl: 'appUrl',
2875
+ pcUrl: 'pcUrl',
1803
2876
  };
1804
2877
  }
1805
2878
 
1806
2879
  static types(): { [key: string]: any } {
1807
2880
  return {
1808
- memberId: 'string',
1809
- memberType: 'string',
1810
- roleType: 'string',
2881
+ appUrl: 'string',
2882
+ pcUrl: 'string',
1811
2883
  };
1812
2884
  }
1813
2885
 
@@ -1816,17 +2888,17 @@ export class AddWorkspaceMembersRequestMembers extends $tea.Model {
1816
2888
  }
1817
2889
  }
1818
2890
 
1819
- export class AddWorkspaceMembersRequestTenantContext extends $tea.Model {
1820
- tenantId?: string;
2891
+ export class CreateTodoTaskResponseBodyNotifyConfigs extends $tea.Model {
2892
+ dingNotify?: string;
1821
2893
  static names(): { [key: string]: string } {
1822
2894
  return {
1823
- tenantId: 'tenantId',
2895
+ dingNotify: 'dingNotify',
1824
2896
  };
1825
2897
  }
1826
2898
 
1827
2899
  static types(): { [key: string]: any } {
1828
2900
  return {
1829
- tenantId: 'string',
2901
+ dingNotify: 'string',
1830
2902
  };
1831
2903
  }
1832
2904
 
@@ -1835,7 +2907,7 @@ export class AddWorkspaceMembersRequestTenantContext extends $tea.Model {
1835
2907
  }
1836
2908
  }
1837
2909
 
1838
- export class CreateSheetHeadersAccountContext extends $tea.Model {
2910
+ export class CreateWorkspaceHeadersAccountContext extends $tea.Model {
1839
2911
  accountId?: string;
1840
2912
  static names(): { [key: string]: string } {
1841
2913
  return {
@@ -1854,7 +2926,7 @@ export class CreateSheetHeadersAccountContext extends $tea.Model {
1854
2926
  }
1855
2927
  }
1856
2928
 
1857
- export class CreateSheetRequestTenantContext extends $tea.Model {
2929
+ export class CreateWorkspaceRequestTenantContext extends $tea.Model {
1858
2930
  tenantId?: string;
1859
2931
  static names(): { [key: string]: string } {
1860
2932
  return {
@@ -1873,7 +2945,7 @@ export class CreateSheetRequestTenantContext extends $tea.Model {
1873
2945
  }
1874
2946
  }
1875
2947
 
1876
- export class CreateWorkspaceHeadersAccountContext extends $tea.Model {
2948
+ export class CreateWorkspaceDocHeadersAccountContext extends $tea.Model {
1877
2949
  accountId?: string;
1878
2950
  static names(): { [key: string]: string } {
1879
2951
  return {
@@ -1892,7 +2964,7 @@ export class CreateWorkspaceHeadersAccountContext extends $tea.Model {
1892
2964
  }
1893
2965
  }
1894
2966
 
1895
- export class CreateWorkspaceRequestTenantContext extends $tea.Model {
2967
+ export class CreateWorkspaceDocRequestTenantContext extends $tea.Model {
1896
2968
  tenantId?: string;
1897
2969
  static names(): { [key: string]: string } {
1898
2970
  return {
@@ -1911,7 +2983,7 @@ export class CreateWorkspaceRequestTenantContext extends $tea.Model {
1911
2983
  }
1912
2984
  }
1913
2985
 
1914
- export class CreateWorkspaceDocHeadersAccountContext extends $tea.Model {
2986
+ export class DeleteTodoTaskHeadersAccountContext extends $tea.Model {
1915
2987
  accountId?: string;
1916
2988
  static names(): { [key: string]: string } {
1917
2989
  return {
@@ -1930,7 +3002,7 @@ export class CreateWorkspaceDocHeadersAccountContext extends $tea.Model {
1930
3002
  }
1931
3003
  }
1932
3004
 
1933
- export class CreateWorkspaceDocRequestTenantContext extends $tea.Model {
3005
+ export class DeleteTodoTaskRequestTenantContext extends $tea.Model {
1934
3006
  tenantId?: string;
1935
3007
  static names(): { [key: string]: string } {
1936
3008
  return {
@@ -2261,6 +3333,213 @@ export class InsertRowsBeforeRequestTenantContext extends $tea.Model {
2261
3333
  }
2262
3334
  }
2263
3335
 
3336
+ export class QueryOrgTodoTasksHeadersAccountContext extends $tea.Model {
3337
+ accountId?: string;
3338
+ static names(): { [key: string]: string } {
3339
+ return {
3340
+ accountId: 'accountId',
3341
+ };
3342
+ }
3343
+
3344
+ static types(): { [key: string]: any } {
3345
+ return {
3346
+ accountId: 'string',
3347
+ };
3348
+ }
3349
+
3350
+ constructor(map?: { [key: string]: any }) {
3351
+ super(map);
3352
+ }
3353
+ }
3354
+
3355
+ export class QueryOrgTodoTasksRequestTenantContext extends $tea.Model {
3356
+ tenantId?: string;
3357
+ static names(): { [key: string]: string } {
3358
+ return {
3359
+ tenantId: 'tenantId',
3360
+ };
3361
+ }
3362
+
3363
+ static types(): { [key: string]: any } {
3364
+ return {
3365
+ tenantId: 'string',
3366
+ };
3367
+ }
3368
+
3369
+ constructor(map?: { [key: string]: any }) {
3370
+ super(map);
3371
+ }
3372
+ }
3373
+
3374
+ export class QueryOrgTodoTasksResponseBodyTodoCardsDetailUrl extends $tea.Model {
3375
+ appUrl?: string;
3376
+ pcUrl?: string;
3377
+ static names(): { [key: string]: string } {
3378
+ return {
3379
+ appUrl: 'appUrl',
3380
+ pcUrl: 'pcUrl',
3381
+ };
3382
+ }
3383
+
3384
+ static types(): { [key: string]: any } {
3385
+ return {
3386
+ appUrl: 'string',
3387
+ pcUrl: 'string',
3388
+ };
3389
+ }
3390
+
3391
+ constructor(map?: { [key: string]: any }) {
3392
+ super(map);
3393
+ }
3394
+ }
3395
+
3396
+ export class QueryOrgTodoTasksResponseBodyTodoCards extends $tea.Model {
3397
+ bizTag?: string;
3398
+ createdTime?: number;
3399
+ creatorId?: string;
3400
+ detailUrl?: QueryOrgTodoTasksResponseBodyTodoCardsDetailUrl;
3401
+ dueTime?: number;
3402
+ isDone?: boolean;
3403
+ modifiedTime?: number;
3404
+ priority?: number;
3405
+ sourceId?: string;
3406
+ subject?: string;
3407
+ taskId?: string;
3408
+ static names(): { [key: string]: string } {
3409
+ return {
3410
+ bizTag: 'bizTag',
3411
+ createdTime: 'createdTime',
3412
+ creatorId: 'creatorId',
3413
+ detailUrl: 'detailUrl',
3414
+ dueTime: 'dueTime',
3415
+ isDone: 'isDone',
3416
+ modifiedTime: 'modifiedTime',
3417
+ priority: 'priority',
3418
+ sourceId: 'sourceId',
3419
+ subject: 'subject',
3420
+ taskId: 'taskId',
3421
+ };
3422
+ }
3423
+
3424
+ static types(): { [key: string]: any } {
3425
+ return {
3426
+ bizTag: 'string',
3427
+ createdTime: 'number',
3428
+ creatorId: 'string',
3429
+ detailUrl: QueryOrgTodoTasksResponseBodyTodoCardsDetailUrl,
3430
+ dueTime: 'number',
3431
+ isDone: 'boolean',
3432
+ modifiedTime: 'number',
3433
+ priority: 'number',
3434
+ sourceId: 'string',
3435
+ subject: 'string',
3436
+ taskId: 'string',
3437
+ };
3438
+ }
3439
+
3440
+ constructor(map?: { [key: string]: any }) {
3441
+ super(map);
3442
+ }
3443
+ }
3444
+
3445
+ export class UpdateTodoTaskHeadersAccountContext extends $tea.Model {
3446
+ accountId?: string;
3447
+ static names(): { [key: string]: string } {
3448
+ return {
3449
+ accountId: 'accountId',
3450
+ };
3451
+ }
3452
+
3453
+ static types(): { [key: string]: any } {
3454
+ return {
3455
+ accountId: 'string',
3456
+ };
3457
+ }
3458
+
3459
+ constructor(map?: { [key: string]: any }) {
3460
+ super(map);
3461
+ }
3462
+ }
3463
+
3464
+ export class UpdateTodoTaskRequestTenantContext extends $tea.Model {
3465
+ tenantId?: string;
3466
+ static names(): { [key: string]: string } {
3467
+ return {
3468
+ tenantId: 'tenantId',
3469
+ };
3470
+ }
3471
+
3472
+ static types(): { [key: string]: any } {
3473
+ return {
3474
+ tenantId: 'string',
3475
+ };
3476
+ }
3477
+
3478
+ constructor(map?: { [key: string]: any }) {
3479
+ super(map);
3480
+ }
3481
+ }
3482
+
3483
+ export class UpdateTodoTaskExecutorStatusHeadersAccountContext extends $tea.Model {
3484
+ accountId?: string;
3485
+ static names(): { [key: string]: string } {
3486
+ return {
3487
+ accountId: 'accountId',
3488
+ };
3489
+ }
3490
+
3491
+ static types(): { [key: string]: any } {
3492
+ return {
3493
+ accountId: 'string',
3494
+ };
3495
+ }
3496
+
3497
+ constructor(map?: { [key: string]: any }) {
3498
+ super(map);
3499
+ }
3500
+ }
3501
+
3502
+ export class UpdateTodoTaskExecutorStatusRequestTenantContext extends $tea.Model {
3503
+ tenantId?: string;
3504
+ static names(): { [key: string]: string } {
3505
+ return {
3506
+ tenantId: 'tenantId',
3507
+ };
3508
+ }
3509
+
3510
+ static types(): { [key: string]: any } {
3511
+ return {
3512
+ tenantId: 'string',
3513
+ };
3514
+ }
3515
+
3516
+ constructor(map?: { [key: string]: any }) {
3517
+ super(map);
3518
+ }
3519
+ }
3520
+
3521
+ export class UpdateTodoTaskExecutorStatusRequestExecutorStatusList extends $tea.Model {
3522
+ id?: string;
3523
+ isDone?: boolean;
3524
+ static names(): { [key: string]: string } {
3525
+ return {
3526
+ id: 'id',
3527
+ isDone: 'isDone',
3528
+ };
3529
+ }
3530
+
3531
+ static types(): { [key: string]: any } {
3532
+ return {
3533
+ id: 'string',
3534
+ isDone: 'boolean',
3535
+ };
3536
+ }
3537
+
3538
+ constructor(map?: { [key: string]: any }) {
3539
+ super(map);
3540
+ }
3541
+ }
3542
+
2264
3543
  export class UpdateWorkspaceDocMembersHeadersAccountContext extends $tea.Model {
2265
3544
  accountId?: string;
2266
3545
  static names(): { [key: string]: string } {
@@ -2542,11 +3821,71 @@ export default class Client extends OpenApi {
2542
3821
  return await this.addWorkspaceMembersWithOptions(request, headers, runtime);
2543
3822
  }
2544
3823
 
2545
- async createSheetWithOptions(tmpReq: CreateSheetRequest, tmpHeader: CreateSheetHeaders, runtime: $Util.RuntimeOptions): Promise<CreateSheetResponse> {
3824
+ async createSheetWithOptions(tmpReq: CreateSheetRequest, tmpHeader: CreateSheetHeaders, runtime: $Util.RuntimeOptions): Promise<CreateSheetResponse> {
3825
+ Util.validateModel(tmpReq);
3826
+ let request = new CreateSheetShrinkRequest({ });
3827
+ OpenApiUtil.convert(tmpReq, request);
3828
+ let headers = new CreateSheetShrinkHeaders({ });
3829
+ OpenApiUtil.convert(tmpHeader, headers);
3830
+ if (!Util.isUnset(tmpHeader.accountContext)) {
3831
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
3832
+ }
3833
+
3834
+ if (!Util.isUnset(tmpReq.tenantContext)) {
3835
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
3836
+ }
3837
+
3838
+ let body : {[key: string ]: any} = { };
3839
+ if (!Util.isUnset(request.name)) {
3840
+ body["Name"] = request.name;
3841
+ }
3842
+
3843
+ if (!Util.isUnset(request.tenantContextShrink)) {
3844
+ body["TenantContext"] = request.tenantContextShrink;
3845
+ }
3846
+
3847
+ if (!Util.isUnset(request.workbookId)) {
3848
+ body["WorkbookId"] = request.workbookId;
3849
+ }
3850
+
3851
+ let realHeaders : {[key: string ]: string} = { };
3852
+ if (!Util.isUnset(headers.commonHeaders)) {
3853
+ realHeaders = headers.commonHeaders;
3854
+ }
3855
+
3856
+ if (!Util.isUnset(headers.accountContextShrink)) {
3857
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
3858
+ }
3859
+
3860
+ let req = new $OpenApi.OpenApiRequest({
3861
+ headers: realHeaders,
3862
+ body: OpenApiUtil.parseToMap(body),
3863
+ });
3864
+ let params = new $OpenApi.Params({
3865
+ action: "CreateSheet",
3866
+ version: "2023-04-26",
3867
+ protocol: "HTTPS",
3868
+ pathname: `/dingtalk/v1/documents/createSheet`,
3869
+ method: "POST",
3870
+ authType: "AK",
3871
+ style: "ROA",
3872
+ reqBodyType: "formData",
3873
+ bodyType: "json",
3874
+ });
3875
+ return $tea.cast<CreateSheetResponse>(await this.callApi(params, req, runtime), new CreateSheetResponse({}));
3876
+ }
3877
+
3878
+ async createSheet(request: CreateSheetRequest): Promise<CreateSheetResponse> {
3879
+ let runtime = new $Util.RuntimeOptions({ });
3880
+ let headers = new CreateSheetHeaders({ });
3881
+ return await this.createSheetWithOptions(request, headers, runtime);
3882
+ }
3883
+
3884
+ async createTodoTaskWithOptions(tmpReq: CreateTodoTaskRequest, tmpHeader: CreateTodoTaskHeaders, runtime: $Util.RuntimeOptions): Promise<CreateTodoTaskResponse> {
2546
3885
  Util.validateModel(tmpReq);
2547
- let request = new CreateSheetShrinkRequest({ });
3886
+ let request = new CreateTodoTaskShrinkRequest({ });
2548
3887
  OpenApiUtil.convert(tmpReq, request);
2549
- let headers = new CreateSheetShrinkHeaders({ });
3888
+ let headers = new CreateTodoTaskShrinkHeaders({ });
2550
3889
  OpenApiUtil.convert(tmpHeader, headers);
2551
3890
  if (!Util.isUnset(tmpHeader.accountContext)) {
2552
3891
  headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
@@ -2556,17 +3895,82 @@ export default class Client extends OpenApi {
2556
3895
  request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
2557
3896
  }
2558
3897
 
2559
- let body : {[key: string ]: any} = { };
2560
- if (!Util.isUnset(request.name)) {
2561
- body["Name"] = request.name;
3898
+ if (!Util.isUnset(tmpReq.contentFieldList)) {
3899
+ request.contentFieldListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contentFieldList, "contentFieldList", "json");
3900
+ }
3901
+
3902
+ if (!Util.isUnset(tmpReq.detailUrl)) {
3903
+ request.detailUrlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.detailUrl, "detailUrl", "json");
3904
+ }
3905
+
3906
+ if (!Util.isUnset(tmpReq.executorIds)) {
3907
+ request.executorIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "executorIds", "json");
3908
+ }
3909
+
3910
+ if (!Util.isUnset(tmpReq.notifyConfigs)) {
3911
+ request.notifyConfigsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.notifyConfigs, "notifyConfigs", "json");
3912
+ }
3913
+
3914
+ if (!Util.isUnset(tmpReq.participantIds)) {
3915
+ request.participantIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "participantIds", "json");
3916
+ }
3917
+
3918
+ let query : {[key: string ]: any} = { };
3919
+ if (!Util.isUnset(request.operatorId)) {
3920
+ query["operatorId"] = request.operatorId;
2562
3921
  }
2563
3922
 
3923
+ let body : {[key: string ]: any} = { };
2564
3924
  if (!Util.isUnset(request.tenantContextShrink)) {
2565
3925
  body["TenantContext"] = request.tenantContextShrink;
2566
3926
  }
2567
3927
 
2568
- if (!Util.isUnset(request.workbookId)) {
2569
- body["WorkbookId"] = request.workbookId;
3928
+ if (!Util.isUnset(request.contentFieldListShrink)) {
3929
+ body["contentFieldList"] = request.contentFieldListShrink;
3930
+ }
3931
+
3932
+ if (!Util.isUnset(request.creatorId)) {
3933
+ body["creatorId"] = request.creatorId;
3934
+ }
3935
+
3936
+ if (!Util.isUnset(request.description)) {
3937
+ body["description"] = request.description;
3938
+ }
3939
+
3940
+ if (!Util.isUnset(request.detailUrlShrink)) {
3941
+ body["detailUrl"] = request.detailUrlShrink;
3942
+ }
3943
+
3944
+ if (!Util.isUnset(request.dueTime)) {
3945
+ body["dueTime"] = request.dueTime;
3946
+ }
3947
+
3948
+ if (!Util.isUnset(request.executorIdsShrink)) {
3949
+ body["executorIds"] = request.executorIdsShrink;
3950
+ }
3951
+
3952
+ if (!Util.isUnset(request.isOnlyShowExecutor)) {
3953
+ body["isOnlyShowExecutor"] = request.isOnlyShowExecutor;
3954
+ }
3955
+
3956
+ if (!Util.isUnset(request.notifyConfigsShrink)) {
3957
+ body["notifyConfigs"] = request.notifyConfigsShrink;
3958
+ }
3959
+
3960
+ if (!Util.isUnset(request.participantIdsShrink)) {
3961
+ body["participantIds"] = request.participantIdsShrink;
3962
+ }
3963
+
3964
+ if (!Util.isUnset(request.priority)) {
3965
+ body["priority"] = request.priority;
3966
+ }
3967
+
3968
+ if (!Util.isUnset(request.sourceId)) {
3969
+ body["sourceId"] = request.sourceId;
3970
+ }
3971
+
3972
+ if (!Util.isUnset(request.subject)) {
3973
+ body["subject"] = request.subject;
2570
3974
  }
2571
3975
 
2572
3976
  let realHeaders : {[key: string ]: string} = { };
@@ -2580,26 +3984,27 @@ export default class Client extends OpenApi {
2580
3984
 
2581
3985
  let req = new $OpenApi.OpenApiRequest({
2582
3986
  headers: realHeaders,
3987
+ query: OpenApiUtil.query(query),
2583
3988
  body: OpenApiUtil.parseToMap(body),
2584
3989
  });
2585
3990
  let params = new $OpenApi.Params({
2586
- action: "CreateSheet",
3991
+ action: "CreateTodoTask",
2587
3992
  version: "2023-04-26",
2588
3993
  protocol: "HTTPS",
2589
- pathname: `/dingtalk/v1/documents/createSheet`,
3994
+ pathname: `/dingtalk/v1/task/createTodoTask`,
2590
3995
  method: "POST",
2591
3996
  authType: "AK",
2592
3997
  style: "ROA",
2593
3998
  reqBodyType: "formData",
2594
3999
  bodyType: "json",
2595
4000
  });
2596
- return $tea.cast<CreateSheetResponse>(await this.callApi(params, req, runtime), new CreateSheetResponse({}));
4001
+ return $tea.cast<CreateTodoTaskResponse>(await this.callApi(params, req, runtime), new CreateTodoTaskResponse({}));
2597
4002
  }
2598
4003
 
2599
- async createSheet(request: CreateSheetRequest): Promise<CreateSheetResponse> {
4004
+ async createTodoTask(request: CreateTodoTaskRequest): Promise<CreateTodoTaskResponse> {
2600
4005
  let runtime = new $Util.RuntimeOptions({ });
2601
- let headers = new CreateSheetHeaders({ });
2602
- return await this.createSheetWithOptions(request, headers, runtime);
4006
+ let headers = new CreateTodoTaskHeaders({ });
4007
+ return await this.createTodoTaskWithOptions(request, headers, runtime);
2603
4008
  }
2604
4009
 
2605
4010
  async createWorkspaceWithOptions(tmpReq: CreateWorkspaceRequest, tmpHeader: CreateWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise<CreateWorkspaceResponse> {
@@ -2738,6 +4143,66 @@ export default class Client extends OpenApi {
2738
4143
  return await this.createWorkspaceDocWithOptions(request, headers, runtime);
2739
4144
  }
2740
4145
 
4146
+ async deleteTodoTaskWithOptions(tmpReq: DeleteTodoTaskRequest, tmpHeader: DeleteTodoTaskHeaders, runtime: $Util.RuntimeOptions): Promise<DeleteTodoTaskResponse> {
4147
+ Util.validateModel(tmpReq);
4148
+ let request = new DeleteTodoTaskShrinkRequest({ });
4149
+ OpenApiUtil.convert(tmpReq, request);
4150
+ let headers = new DeleteTodoTaskShrinkHeaders({ });
4151
+ OpenApiUtil.convert(tmpHeader, headers);
4152
+ if (!Util.isUnset(tmpHeader.accountContext)) {
4153
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
4154
+ }
4155
+
4156
+ if (!Util.isUnset(tmpReq.tenantContext)) {
4157
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
4158
+ }
4159
+
4160
+ let body : {[key: string ]: any} = { };
4161
+ if (!Util.isUnset(request.tenantContextShrink)) {
4162
+ body["TenantContext"] = request.tenantContextShrink;
4163
+ }
4164
+
4165
+ if (!Util.isUnset(request.operatorId)) {
4166
+ body["operatorId"] = request.operatorId;
4167
+ }
4168
+
4169
+ if (!Util.isUnset(request.taskId)) {
4170
+ body["taskId"] = request.taskId;
4171
+ }
4172
+
4173
+ let realHeaders : {[key: string ]: string} = { };
4174
+ if (!Util.isUnset(headers.commonHeaders)) {
4175
+ realHeaders = headers.commonHeaders;
4176
+ }
4177
+
4178
+ if (!Util.isUnset(headers.accountContextShrink)) {
4179
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
4180
+ }
4181
+
4182
+ let req = new $OpenApi.OpenApiRequest({
4183
+ headers: realHeaders,
4184
+ body: OpenApiUtil.parseToMap(body),
4185
+ });
4186
+ let params = new $OpenApi.Params({
4187
+ action: "DeleteTodoTask",
4188
+ version: "2023-04-26",
4189
+ protocol: "HTTPS",
4190
+ pathname: `/dingtalk/v1/task/deleteTodoTask`,
4191
+ method: "POST",
4192
+ authType: "AK",
4193
+ style: "ROA",
4194
+ reqBodyType: "formData",
4195
+ bodyType: "json",
4196
+ });
4197
+ return $tea.cast<DeleteTodoTaskResponse>(await this.callApi(params, req, runtime), new DeleteTodoTaskResponse({}));
4198
+ }
4199
+
4200
+ async deleteTodoTask(request: DeleteTodoTaskRequest): Promise<DeleteTodoTaskResponse> {
4201
+ let runtime = new $Util.RuntimeOptions({ });
4202
+ let headers = new DeleteTodoTaskHeaders({ });
4203
+ return await this.deleteTodoTaskWithOptions(request, headers, runtime);
4204
+ }
4205
+
2741
4206
  async deleteWorkspaceDocMembersWithOptions(tmpReq: DeleteWorkspaceDocMembersRequest, tmpHeader: DeleteWorkspaceDocMembersHeaders, runtime: $Util.RuntimeOptions): Promise<DeleteWorkspaceDocMembersResponse> {
2742
4207
  Util.validateModel(tmpReq);
2743
4208
  let request = new DeleteWorkspaceDocMembersShrinkRequest({ });
@@ -2994,6 +4459,222 @@ export default class Client extends OpenApi {
2994
4459
  return await this.insertRowsBeforeWithOptions(request, headers, runtime);
2995
4460
  }
2996
4461
 
4462
+ async queryOrgTodoTasksWithOptions(tmpReq: QueryOrgTodoTasksRequest, tmpHeader: QueryOrgTodoTasksHeaders, runtime: $Util.RuntimeOptions): Promise<QueryOrgTodoTasksResponse> {
4463
+ Util.validateModel(tmpReq);
4464
+ let request = new QueryOrgTodoTasksShrinkRequest({ });
4465
+ OpenApiUtil.convert(tmpReq, request);
4466
+ let headers = new QueryOrgTodoTasksShrinkHeaders({ });
4467
+ OpenApiUtil.convert(tmpHeader, headers);
4468
+ if (!Util.isUnset(tmpHeader.accountContext)) {
4469
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
4470
+ }
4471
+
4472
+ if (!Util.isUnset(tmpReq.tenantContext)) {
4473
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
4474
+ }
4475
+
4476
+ let body : {[key: string ]: any} = { };
4477
+ if (!Util.isUnset(request.tenantContextShrink)) {
4478
+ body["TenantContext"] = request.tenantContextShrink;
4479
+ }
4480
+
4481
+ if (!Util.isUnset(request.isDone)) {
4482
+ body["isDone"] = request.isDone;
4483
+ }
4484
+
4485
+ if (!Util.isUnset(request.nextToken)) {
4486
+ body["nextToken"] = request.nextToken;
4487
+ }
4488
+
4489
+ let realHeaders : {[key: string ]: string} = { };
4490
+ if (!Util.isUnset(headers.commonHeaders)) {
4491
+ realHeaders = headers.commonHeaders;
4492
+ }
4493
+
4494
+ if (!Util.isUnset(headers.accountContextShrink)) {
4495
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
4496
+ }
4497
+
4498
+ let req = new $OpenApi.OpenApiRequest({
4499
+ headers: realHeaders,
4500
+ body: OpenApiUtil.parseToMap(body),
4501
+ });
4502
+ let params = new $OpenApi.Params({
4503
+ action: "QueryOrgTodoTasks",
4504
+ version: "2023-04-26",
4505
+ protocol: "HTTPS",
4506
+ pathname: `/dingtalk/v1/task/queryOrgTodoTasks`,
4507
+ method: "POST",
4508
+ authType: "AK",
4509
+ style: "ROA",
4510
+ reqBodyType: "formData",
4511
+ bodyType: "json",
4512
+ });
4513
+ return $tea.cast<QueryOrgTodoTasksResponse>(await this.callApi(params, req, runtime), new QueryOrgTodoTasksResponse({}));
4514
+ }
4515
+
4516
+ async queryOrgTodoTasks(request: QueryOrgTodoTasksRequest): Promise<QueryOrgTodoTasksResponse> {
4517
+ let runtime = new $Util.RuntimeOptions({ });
4518
+ let headers = new QueryOrgTodoTasksHeaders({ });
4519
+ return await this.queryOrgTodoTasksWithOptions(request, headers, runtime);
4520
+ }
4521
+
4522
+ async updateTodoTaskWithOptions(tmpReq: UpdateTodoTaskRequest, tmpHeader: UpdateTodoTaskHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateTodoTaskResponse> {
4523
+ Util.validateModel(tmpReq);
4524
+ let request = new UpdateTodoTaskShrinkRequest({ });
4525
+ OpenApiUtil.convert(tmpReq, request);
4526
+ let headers = new UpdateTodoTaskShrinkHeaders({ });
4527
+ OpenApiUtil.convert(tmpHeader, headers);
4528
+ if (!Util.isUnset(tmpHeader.accountContext)) {
4529
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
4530
+ }
4531
+
4532
+ if (!Util.isUnset(tmpReq.tenantContext)) {
4533
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
4534
+ }
4535
+
4536
+ if (!Util.isUnset(tmpReq.executorIds)) {
4537
+ request.executorIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "executorIds", "json");
4538
+ }
4539
+
4540
+ if (!Util.isUnset(tmpReq.participantIds)) {
4541
+ request.participantIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "participantIds", "json");
4542
+ }
4543
+
4544
+ let body : {[key: string ]: any} = { };
4545
+ if (!Util.isUnset(request.tenantContextShrink)) {
4546
+ body["TenantContext"] = request.tenantContextShrink;
4547
+ }
4548
+
4549
+ if (!Util.isUnset(request.description)) {
4550
+ body["description"] = request.description;
4551
+ }
4552
+
4553
+ if (!Util.isUnset(request.done)) {
4554
+ body["done"] = request.done;
4555
+ }
4556
+
4557
+ if (!Util.isUnset(request.dueTime)) {
4558
+ body["dueTime"] = request.dueTime;
4559
+ }
4560
+
4561
+ if (!Util.isUnset(request.executorIdsShrink)) {
4562
+ body["executorIds"] = request.executorIdsShrink;
4563
+ }
4564
+
4565
+ if (!Util.isUnset(request.participantIdsShrink)) {
4566
+ body["participantIds"] = request.participantIdsShrink;
4567
+ }
4568
+
4569
+ if (!Util.isUnset(request.subject)) {
4570
+ body["subject"] = request.subject;
4571
+ }
4572
+
4573
+ if (!Util.isUnset(request.taskId)) {
4574
+ body["taskId"] = request.taskId;
4575
+ }
4576
+
4577
+ let realHeaders : {[key: string ]: string} = { };
4578
+ if (!Util.isUnset(headers.commonHeaders)) {
4579
+ realHeaders = headers.commonHeaders;
4580
+ }
4581
+
4582
+ if (!Util.isUnset(headers.accountContextShrink)) {
4583
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
4584
+ }
4585
+
4586
+ let req = new $OpenApi.OpenApiRequest({
4587
+ headers: realHeaders,
4588
+ body: OpenApiUtil.parseToMap(body),
4589
+ });
4590
+ let params = new $OpenApi.Params({
4591
+ action: "UpdateTodoTask",
4592
+ version: "2023-04-26",
4593
+ protocol: "HTTPS",
4594
+ pathname: `/dingtalk/v1/task/updateTodoTask`,
4595
+ method: "POST",
4596
+ authType: "AK",
4597
+ style: "ROA",
4598
+ reqBodyType: "formData",
4599
+ bodyType: "json",
4600
+ });
4601
+ return $tea.cast<UpdateTodoTaskResponse>(await this.callApi(params, req, runtime), new UpdateTodoTaskResponse({}));
4602
+ }
4603
+
4604
+ async updateTodoTask(request: UpdateTodoTaskRequest): Promise<UpdateTodoTaskResponse> {
4605
+ let runtime = new $Util.RuntimeOptions({ });
4606
+ let headers = new UpdateTodoTaskHeaders({ });
4607
+ return await this.updateTodoTaskWithOptions(request, headers, runtime);
4608
+ }
4609
+
4610
+ async updateTodoTaskExecutorStatusWithOptions(tmpReq: UpdateTodoTaskExecutorStatusRequest, tmpHeader: UpdateTodoTaskExecutorStatusHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateTodoTaskExecutorStatusResponse> {
4611
+ Util.validateModel(tmpReq);
4612
+ let request = new UpdateTodoTaskExecutorStatusShrinkRequest({ });
4613
+ OpenApiUtil.convert(tmpReq, request);
4614
+ let headers = new UpdateTodoTaskExecutorStatusShrinkHeaders({ });
4615
+ OpenApiUtil.convert(tmpHeader, headers);
4616
+ if (!Util.isUnset(tmpHeader.accountContext)) {
4617
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
4618
+ }
4619
+
4620
+ if (!Util.isUnset(tmpReq.tenantContext)) {
4621
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
4622
+ }
4623
+
4624
+ if (!Util.isUnset(tmpReq.executorStatusList)) {
4625
+ request.executorStatusListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.executorStatusList, "executorStatusList", "json");
4626
+ }
4627
+
4628
+ let body : {[key: string ]: any} = { };
4629
+ if (!Util.isUnset(request.tenantContextShrink)) {
4630
+ body["TenantContext"] = request.tenantContextShrink;
4631
+ }
4632
+
4633
+ if (!Util.isUnset(request.executorStatusListShrink)) {
4634
+ body["executorStatusList"] = request.executorStatusListShrink;
4635
+ }
4636
+
4637
+ if (!Util.isUnset(request.operatorId)) {
4638
+ body["operatorId"] = request.operatorId;
4639
+ }
4640
+
4641
+ if (!Util.isUnset(request.taskId)) {
4642
+ body["taskId"] = request.taskId;
4643
+ }
4644
+
4645
+ let realHeaders : {[key: string ]: string} = { };
4646
+ if (!Util.isUnset(headers.commonHeaders)) {
4647
+ realHeaders = headers.commonHeaders;
4648
+ }
4649
+
4650
+ if (!Util.isUnset(headers.accountContextShrink)) {
4651
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
4652
+ }
4653
+
4654
+ let req = new $OpenApi.OpenApiRequest({
4655
+ headers: realHeaders,
4656
+ body: OpenApiUtil.parseToMap(body),
4657
+ });
4658
+ let params = new $OpenApi.Params({
4659
+ action: "UpdateTodoTaskExecutorStatus",
4660
+ version: "2023-04-26",
4661
+ protocol: "HTTPS",
4662
+ pathname: `/dingtalk/v1/task/updateTodoTaskExecutorStatus`,
4663
+ method: "POST",
4664
+ authType: "AK",
4665
+ style: "ROA",
4666
+ reqBodyType: "formData",
4667
+ bodyType: "json",
4668
+ });
4669
+ return $tea.cast<UpdateTodoTaskExecutorStatusResponse>(await this.callApi(params, req, runtime), new UpdateTodoTaskExecutorStatusResponse({}));
4670
+ }
4671
+
4672
+ async updateTodoTaskExecutorStatus(request: UpdateTodoTaskExecutorStatusRequest): Promise<UpdateTodoTaskExecutorStatusResponse> {
4673
+ let runtime = new $Util.RuntimeOptions({ });
4674
+ let headers = new UpdateTodoTaskExecutorStatusHeaders({ });
4675
+ return await this.updateTodoTaskExecutorStatusWithOptions(request, headers, runtime);
4676
+ }
4677
+
2997
4678
  async updateWorkspaceDocMembersWithOptions(tmpReq: UpdateWorkspaceDocMembersRequest, tmpHeader: UpdateWorkspaceDocMembersHeaders, runtime: $Util.RuntimeOptions): Promise<UpdateWorkspaceDocMembersResponse> {
2998
4679
  Util.validateModel(tmpReq);
2999
4680
  let request = new UpdateWorkspaceDocMembersShrinkRequest({ });